Added Dockerfile and docker-compose.yaml for portable compilation of output pdf
This commit is contained in:
parent
7bc99a71f4
commit
b3f3f43e0a
23
Dockerfile
Normal file
23
Dockerfile
Normal file
@ -0,0 +1,23 @@
|
||||
FROM alpine:3.20.2
|
||||
|
||||
RUN apk add --no-cache \
|
||||
make=4.4.1-r2 \
|
||||
graphviz=9.0.0-r2 \
|
||||
texlive-xetex=20240210.69778-r3 \
|
||||
texmf-dist-langfrench=2024.0-r5 \
|
||||
texmf-dist-latexextra=2024.0-r5 \
|
||||
texmf-dist-bibtexextra=2024.0-r5 \
|
||||
texmf-dist-mathscience=2024.0-r5 \
|
||||
texmf-dist-publishers=2024.0-r5 \
|
||||
&& rm -rfv /var/cache/apk/*
|
||||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
|
||||
RUN adduser -D -u "${UID}" -g "${GID}" notebook
|
||||
|
||||
WORKDIR /home/notebook
|
||||
|
||||
USER notebook
|
||||
|
||||
ENTRYPOINT ["make"]
|
11
docker-compose.yaml
Normal file
11
docker-compose.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
services:
|
||||
notebook:
|
||||
image: saundersp/notebook
|
||||
build:
|
||||
args:
|
||||
UID: ${UID:-1000}
|
||||
GID: ${GID:-1000}
|
||||
pull_policy: never
|
||||
user: ${UID:-1000}:${GID:-1000}
|
||||
volumes:
|
||||
- ./:/home/notebook/
|
Loading…
x
Reference in New Issue
Block a user