From ecfc0f74618c875cab64b90682ae49e127363bb6 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Wed, 29 Jan 2025 10:12:05 +0100 Subject: [PATCH] build(docker/fradrive): prepare fradrive Dockerfile for release [skip ci] --- docker/fradrive/Dockerfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) mode change 100644 => 100755 docker/fradrive/Dockerfile diff --git a/docker/fradrive/Dockerfile b/docker/fradrive/Dockerfile old mode 100644 new mode 100755 index 9a19f1def..4457f7de6 --- a/docker/fradrive/Dockerfile +++ b/docker/fradrive/Dockerfile @@ -1,16 +1,17 @@ -FROM debian:12.5 +ARG FROM_IMG=docker.io/library/debian +ARG FROM_TAG=12.5 -RUN apt-get -y update +FROM ${FROM_IMG}:${FROM_TAG} -# setup locales +# Setup locales RUN apt-get -y install locales locales-all RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ locale-gen ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 -# Binary runtime dependencies +# FraDrive 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 +# 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 # Add uniworx user and directories RUN mkdir -p /var/lib @@ -20,10 +21,12 @@ RUN useradd -r -g uniworx -d /var/lib/uniworx -M uniworx --uid 999 RUN mkdir -p /var/lib/uniworx && chown -R uniworx:uniworx /var/lib/uniworx RUN mkdir -p /var/log/uniworx && chown -R uniworx:uniworx /var/log/uniworx -# TODO: is this still needed? +# Install FraDrive binaries # RUN install -d -g uniworx -o uniworx -m 0750 /var/lib/uniworx # RUN install -d -g uniworx -o uniworx -m 0755 /var/log/uniworx -RUN cp /tmp/uniworx-bin/uniworx /usr/bin/uniworx +COPY uniworx /usr/bin/uniworx +COPY uniworxdb /usr/bin/uniworx +# COPY uniworxload /usr/bin/uniworx USER uniworx ENTRYPOINT fradrive-entrypoint.sh