]> git.madduck.net Git - etc/vim.git/commitdiff

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:

Compress RUN statements into one to avoid layer proliferation
authorŁukasz Langa <lukasz@langa.pl>
Tue, 17 Mar 2020 10:33:57 +0000 (11:33 +0100)
committerŁukasz Langa <lukasz@langa.pl>
Tue, 17 Mar 2020 10:33:57 +0000 (11:33 +0100)
Thanks for the suggestion, @imomaliev.

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"]