Clean up apt local cache in Dockerfile

This will make the image smaller
This commit is contained in:
Peter Dave Hello 2020-11-30 01:49:53 +08:00 committed by GitHub
parent 5d3e110a9e
commit 47dc1727df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ FROM nginx:stable
LABEL maintainer="antelle.net@gmail.com"
# install
RUN apt-get -y update && apt-get -y install openssl curl unzip
RUN apt-get -y update && apt-get -y install openssl curl unzip && rm -rf /var/lib/apt/lists/*
# setup nginx
RUN rm -rf /etc/nginx/conf.d/*; \