-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 720 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ARG PYTHON_VERSION
ARG DEBIAN_VERSION
FROM python:${PYTHON_VERSION}-slim-${DEBIAN_VERSION}
LABEL maintainer="hello@victor.co.zm"
# we're redefining this because Docker labels don't directly support variable substitution
# By redefining the arguments after the `FROM` directive,
# Docker can substitute their values correctly when setting the labels
ARG PYTHON_VERSION
ARG DEBIAN_VERSION
LABEL version="${PYTHON_VERSION}-slim-${DEBIAN_VERSION}"
LABEL description="Python ${PYTHON_VERSION}-slim-${DEBIAN_VERSION} plus texlive-full and pandoc"
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
texlive-full \
pandoc \
; \
rm -rf /var/lib/apt/lists/*
CMD ["python3"]