Skip to content

Commit 1d66f4c

Browse files
committed
move var and config permission change to last layer
as the COPY does not preserve owner we have to live with extra layer
1 parent 0a0d542 commit 1d66f4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ RUN echo "$CHECKSUM *eventum.tar.xz" | sha256sum -c -
1919

2020
WORKDIR /app
2121
RUN tar --strip-components=1 -xf /source/eventum.tar.xz
22-
RUN set -x \
23-
&& chmod -R og-rwX config var \
24-
&& chown -R www-data: config var \
25-
&& du -sh
2622

2723
COPY php.ini /php.ini
2824
RUN chmod 644 /php.ini
@@ -36,3 +32,7 @@ RUN sed -i -e '/root/ s;/var/www/html;/app/htdocs;' /etc/nginx/conf.d/default.co
3632
WORKDIR /app
3733
COPY --from=source /php.ini /etc/php/7.1/php.ini
3834
COPY --from=source /app ./
35+
RUN set -x \
36+
&& chmod -R og-rwX config var \
37+
&& chown -R www-data: config var \
38+
&& du -sh

0 commit comments

Comments
 (0)