Skip to content

Commit

Permalink
Copy runmariadb as the last step to avoid unnecessary rebuilds
Browse files Browse the repository at this point in the history
  • Loading branch information
dtantsur committed Aug 1, 2023
1 parent 1b45664 commit 82589dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ ENV PKGS_LIST=main-packages-list.txt
ARG EXTRA_PKGS_LIST

COPY ${PKGS_LIST} ${EXTRA_PKGS_LIST:-$PKGS_LIST} /tmp/
COPY prepare-image.sh configure-nonroot.sh runmariadb /bin/
COPY prepare-image.sh configure-nonroot.sh /bin/

RUN /bin/prepare-image.sh && rm -f /bin/prepare-image.sh
RUN /bin/configure-nonroot.sh && rm -f /bin/configure-nonroot.sh

COPY runmariadb /bin/
ENTRYPOINT /bin/runmariadb

0 comments on commit 82589dc

Please sign in to comment.