Skip to content

Commit de084f5

Browse files
Improve Dockerfile
Change order so layers can be cached more properly.
1 parent 7a8c84b commit de084f5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
FROM composer:1.7
22

3-
ADD . /src/app/
4-
WORKDIR /src/app
5-
63
ENV TINI_VERSION 0.18.0-r0
74

8-
RUN \
9-
apk add --no-cache tini=$TINI_VERSION && \
10-
composer install && \
11-
cp includes/config.environment.inc.php includes/config.inc.php
5+
RUN apk add --no-cache tini=$TINI_VERSION
6+
RUN composer install
127

13-
EXPOSE 80
8+
ADD . /src/app/
9+
10+
RUN cp includes/config.environment.inc.php includes/config.inc.php
1411

12+
WORKDIR /src/app
13+
EXPOSE 80
1514
ENTRYPOINT [ "tini", "--", "php", "-S", "0.0.0.0:80" ]

0 commit comments

Comments
 (0)