diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0d971e9 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..8c13331 --- /dev/null +++ b/docker-compose.yaml @@ -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/