X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9a50ba261cf806a97923d170f53907c1424b4832..2989dc1bf822b1b2a6bd250cea37bbf20c237764:/gallery/Dockerfile diff --git a/gallery/Dockerfile b/gallery/Dockerfile index b7d0ac1..7a18b7e 100644 --- a/gallery/Dockerfile +++ b/gallery/Dockerfile @@ -1,11 +1,11 @@ FROM python:3.8.2-slim -RUN apt-get update -RUN apt-get upgrade -y -RUN apt-get install git apt-utils -y - -RUN git config --global user.email "black@psf.github.com" -RUN git config --global user.name "Gallery/Black" +# note: a single RUN to avoid too many image layers being produced +RUN apt-get update \ + && apt-get upgrade -y \ + && apt-get install git apt-utils -y \ + && git config --global user.email "black@psf.github.com" \ + && git config --global user.name "Gallery/Black" COPY gallery.py / ENTRYPOINT ["python", "/gallery.py"]