]> git.madduck.net Git - etc/vim.git/blobdiff - gallery/Dockerfile

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

more trailing comma tests (#2810)
[etc/vim.git] / gallery / Dockerfile
index b7d0ac1971e8da0e31c78c39c51f6a352349cc32..7a18b7e9a18abde7e0050a15f0f7aa55629eca72 100644 (file)
@@ -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"]