build(docker/fradrive): prepare fradrive Dockerfile for release [skip ci]
This commit is contained in:
parent
83a92b05dd
commit
ecfc0f7461
17
docker/fradrive/Dockerfile
Normal file → Executable file
17
docker/fradrive/Dockerfile
Normal file → Executable file
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user