From 190712ffc1f7c99e0894d0137ef0c9d64a5f6f02 Mon Sep 17 00:00:00 2001 From: Michael Contento Date: Tue, 28 Mar 2017 19:57:54 +0200 Subject: [PATCH] combine two RUN statements to keep the layers down --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d01778c..be8c1b5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,9 @@ RUN \ # Install dependencies apk add --no-cache nginx supervisor \ # Install PHP extension - && docker-php-ext-install opcache - + && docker-php-ext-install opcache \ # 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 /var/log/nginx \ # Ensure nginx logs, even if the config has errors, are written to stderr