-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 824 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 824 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
25
26
27
28
29
30
31
FROM ubuntu:24.04
# preventing interactive tzinfo config on `apt-get install cmake`
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
make \
texlive-latex-base \
texlive-latex-recommended \
texlive-fonts-extra \
texlive-lang-german \
&& rm -rf /var/lib/apt/lists/*
ARG USER_NAME=dev
ARG USER_ID=1000
ARG GROUP_ID=1000
RUN groupadd -g ${GROUP_ID} ${USER_NAME} || true \
&& useradd -l -u ${USER_ID} -g ${GROUP_ID} ${USER_NAME} || true
# Use docker run -u <USER_NAME> instead of setting the user here
#
# Not setting the user here allows to use the same Dockerfile with
# rootless podman and not having to modify the shared folders with
# `podman unshare chown ...`
#
# USER ${USER_NAME}
WORKDIR /tmp/work
ENTRYPOINT ["/usr/bin/pdflatex", "-interaction=nonstopmode"]