Skip to content

Commit

Permalink
Add mysql-client to earlier installation step in Dockerfile
Browse files Browse the repository at this point in the history
Moved mysql-client installation to an earlier step to streamline the Dockerfile. This change ensures mysql-client is available prior to the node setup, avoiding redundancy and potential conflicts.
  • Loading branch information
nbejansen committed Sep 6, 2024
1 parent 585a57f commit d7a1e73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ ENV RUNTIME_VERBOSITY=0 \

COPY ./php/runtime/packages /runtime/packages

RUN /runtime/bin/install gnupg2 software-properties-common less msmtp unzip \
RUN /runtime/bin/install gnupg2 software-properties-common less msmtp unzip mysql-client \
&& add-apt-repository ppa:ondrej/php \
&& mkdir -p /etc/php/current \
&& ln -sf /etc/php/current /etc/php/${PHP_VERSION} \
Expand Down Expand Up @@ -146,7 +146,7 @@ USER root

RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
&& /runtime/bin/install mysql-client ssh-client rsync nano nodejs
&& /runtime/bin/install ssh-client rsync nano nodejs

USER $RUNTIME_UID

Expand All @@ -158,6 +158,6 @@ ENV RUNTIME_VERBOSITY=0

USER root

RUN /runtime/bin/install mysql-client ssh-client rsync restic
RUN /runtime/bin/install ssh-client rsync restic

USER $RUNTIME_UID

0 comments on commit d7a1e73

Please sign in to comment.