black/gallery/Dockerfile
Łukasz Langa e44e0a6598
Compress RUN statements into one to avoid layer proliferation
Thanks for the suggestion, @imomaliev.
2020-03-17 11:33:57 +01:00

12 lines
342 B
Docker

FROM python:3.8.2-slim
# 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"]