combine two RUN statements to keep the layers down
This commit is contained in:
parent
6181af05f9
commit
190712ffc1
@ -6,10 +6,9 @@ RUN \
|
|||||||
# Install dependencies
|
# Install dependencies
|
||||||
apk add --no-cache nginx supervisor \
|
apk add --no-cache nginx supervisor \
|
||||||
# Install PHP extension
|
# Install PHP extension
|
||||||
&& docker-php-ext-install opcache
|
&& docker-php-ext-install opcache \
|
||||||
|
|
||||||
# Remove (some of the) default nginx config
|
# Remove (some of the) default nginx config
|
||||||
RUN rm -f /etc/nginx.conf \
|
&& rm -f /etc/nginx.conf \
|
||||||
&& rm -rf /etc/nginx/sites-* \
|
&& rm -rf /etc/nginx/sites-* \
|
||||||
&& rm -rf /var/log/nginx \
|
&& rm -rf /var/log/nginx \
|
||||||
# Ensure nginx logs, even if the config has errors, are written to stderr
|
# Ensure nginx logs, even if the config has errors, are written to stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user