-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile.latex
48 lines (35 loc) · 1.4 KB
/
Dockerfile.latex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.6.4
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" > /etc/apt/sources.list.d/backports.list \
&& apt-get update \
&& apt-get install --no-install-recommends --target-release jessie-backports --yes \
enchant \
latexmk \
texlive-fonts-recommended \
texlive-latex-extra \
&& rm --force --recursive /var/lib/apt/lists/*
RUN groupadd --gid 1000 python
RUN useradd --create-home --gid python --uid 1000 python
WORKDIR /home/python
RUN mkdir docs && chown python: docs
COPY bin/docker-entrypoint.sh /usr/local/bin/
COPY --chown=1000:1000 requirements.pip ./
ENV PIP_DISABLE_PIP_VERSION_CHECK True
ENV PIP_NO_CACHE_DIR False
ENV PYTHONUNBUFFERED True
USER 1000
RUN python -m venv .venv \
&& . .venv/bin/activate \
&& python -m pip install --requirement requirements.pip
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date="${BUILD_DATE}"
LABEL org.label-schema.name="Docker Sphinx Image"
LABEL org.label-schema.description="A Docker image for Sphinx, a documentation tool written in Python."
LABEL org.label-schema.vcs-ref="${VCS_REF}"
LABEL org.label-schema.vcs-url="https://github.com/keimlink/docker-sphinx-doc"
LABEL org.label-schema.vendor="Markus Zapke-Gründemann"
LABEL org.label-schema.version="${VERSION}"
LABEL org.label-schema.schema-version="1.0"
VOLUME /home/python/docs
ENTRYPOINT ["docker-entrypoint.sh"]