46 lines
1.5 KiB
Docker
46 lines
1.5 KiB
Docker
FROM debian:12.5
|
|
|
|
RUN apt-get -y update
|
|
|
|
# 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
|
|
|
|
# FraDrive runtime dependencies
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV TZ=Etc/UTC
|
|
RUN apt-get update && apt-get -y install libpq-dev
|
|
RUN apt-get update && apt-get -y install libsodium-dev
|
|
# TODO: minimize texlive dependencies, switch to basic schemes where possible
|
|
RUN apt-get update && apt-get -y install \
|
|
texlive-latex-base \
|
|
texlive-luatex \
|
|
texlive-fonts-recommended \
|
|
texlive-fonts-extra \
|
|
texlive-lang-english \
|
|
texlive-lang-german
|
|
|
|
# Add uniworx user and directories
|
|
RUN mkdir -p /var/lib
|
|
RUN mkdir -p /var/log
|
|
RUN groupadd -r uniworx
|
|
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?
|
|
# RUN install -d -g uniworx -o uniworx -m 0750 /var/lib/uniworx
|
|
# RUN install -d -g uniworx -o uniworx -m 0755 /var/log/uniworx
|
|
COPY ./bin/uniworx /usr/bin/uniworx
|
|
COPY ./bin/uniworxdb /usr/bin/uniworxdb
|
|
# COPY uniworxload /usr/bin/uniworx
|
|
RUN chmod -R 777 /usr/bin
|
|
COPY ./docker/fradrive/fradrive-entrypoint.sh /entrypoint.sh
|
|
RUN chmod 777 /entrypoint.sh
|
|
|
|
USER uniworx
|
|
ENTRYPOINT fradrive-entrypoint.sh
|
|
EXPOSE 8080/tcp
|
|
VOLUME /var/lib/uniworx /var/log |