X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/9a50ba261cf806a97923d170f53907c1424b4832..e7e8d6287b38db3f15bdf3d4ec6987d4490b8d14:/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"]