Skip to content

Commit 5a225c5

Browse files
committedFeb 5, 2025
Dockerfile: move COPY . /usr/local/elixir/ to be the last step
On my machine, a `docker build` after any file change is: - Before this patch: 7.29s - Afterwards: 2.18s Signed-off-by: Théo Lebrun <[email protected]>
1 parent 29cf6a5 commit 5a225c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎docker/Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ RUN python3 -m venv venv && \
4545

4646
RUN mkdir -p /srv/elixir-data/
4747

48-
COPY . /usr/local/elixir/
4948
COPY ./docker/000-default.conf /etc/apache2/sites-available/000-default.conf
5049
COPY ./docker/gitconfig /etc/gitconfig
5150

@@ -60,4 +59,6 @@ ENV ELIXIR_VERSION=$ELIXIR_VERSION \
6059
PATH="/usr/local/elixir/utils:/usr/local/elixir/venv/bin:$PATH" \
6160
PYTHONUNBUFFERED=1
6261

62+
COPY . /usr/local/elixir/
63+
6364
ENTRYPOINT ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]

0 commit comments

Comments
 (0)