29 lines
894 B
Docker
29 lines
894 B
Docker
from registry.uniworx.de/fradrive/fradrive/fradrive-env:latest
|
|
|
|
user root
|
|
|
|
# Install uniworx binary
|
|
workdir /fradrive
|
|
run pwd && ls -a && cat Dockerfile && make bin/uniworx
|
|
|
|
# Runtime dependencies
|
|
# TODO: minimize texlive dependencies, switch to basic schemes where possible
|
|
run apt-get -y install texlive-latex-recommended texlive-latex-extra texlive-luatex texlive-fonts-recommended texlive-fonts-extra texlive-lang-english texlive-lang-german
|
|
|
|
# TODO: build container (see nix build)
|
|
|
|
# TODO: remove build dependencies (e.g. nodejs)
|
|
|
|
run mkdir -p /var/lib
|
|
run groupadd -r uniworx
|
|
run useradd -r -g uniworx -d /var/lib/uniworx -M uniworx --uid 999
|
|
run install -d -g uniworx -o uniworx -m 0750 /var/lib/uniworx
|
|
run mkdir -p /var/log
|
|
run install -d -g uniworx -o uniworx -m 0755 /var/log/uniworx
|
|
|
|
user uniworx
|
|
|
|
entrypoint fradrive-entrypoint.sh
|
|
expose 8080/tcp
|
|
volume /var/lib/uniworx /var/log
|