-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
26 lines (18 loc) · 923 Bytes
/
Dockerfile
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
# SPDX-FileCopyrightText: 2023 Robin Schneider <[email protected]>
#
# SPDX-License-Identifier: CC0-1.0
# https://gitlab.com/islandoftex/images/texlive/container_registry/573747?orderBy=NAME&sort=asc&search[]=TL2022-2023-02&search[]=
FROM registry.gitlab.com/islandoftex/images/texlive:TL2023-2023-09-24-full
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq -o=Dpkg::Use-Pty=0 install sudo make chktex lacheck git python3 pipx reuse
RUN tlmgr remove --force doclicense calcage counttexruns fnumprint
ARG USER_UID
ARG USER_GID
RUN groupadd --gid "$USER_GID" user \
&& useradd -G plugdev,sudo -ms /bin/bash --uid "$USER_UID" --gid "$USER_GID" user \
&& chown -R user:user /home/user \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
WORKDIR /home/user/latex-packages
USER user
# Include font name DB in Docker image to allow containers to reuse it.
RUN luaotfload-tool --update