Move apt-get clean into same layer as apt-get install

This commit is contained in:
Manuel Gutierrez
2020-01-09 18:10:49 +01:00
parent 6038525d4b
commit 53f905937e
+2 -3
View File
@@ -3,14 +3,13 @@ FROM nginx:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y openssl apache2-utils
RUN apt-get update && apt-get install -y openssl apache2-utils && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY config/entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME ["/etc/nginx/conf.d"]
ENV NGINX_NAME="foo" \