2024-10-28 20:25:27 +01:00
|
|
|
# Ausgangsbild von Alpine Linux
|
|
|
|
FROM debian:latest
|
|
|
|
|
|
|
|
# Metadaten hinzufügen
|
2024-11-03 20:33:55 +01:00
|
|
|
LABEL maintainer="fah@schmalle.click"
|
2024-10-28 20:25:27 +01:00
|
|
|
|
|
|
|
# Installiere benötigte Pakete
|
|
|
|
RUN apt update && apt install -y \
|
|
|
|
libreoffice \
|
2024-11-03 20:33:55 +01:00
|
|
|
libreoffice-writer \
|
|
|
|
libreoffice-calc \
|
|
|
|
libreoffice-impress \
|
|
|
|
openjdk8-jre \
|
|
|
|
ttf-dejavu \
|
|
|
|
fonts-crosextra-carlito \
|
|
|
|
fonts-crosextra-caladea \
|
2024-10-28 20:25:27 +01:00
|
|
|
unzip
|
|
|
|
|
|
|
|
# Kopiere die ZIP-Datei in den Container
|
2024-11-03 20:33:55 +01:00
|
|
|
COPY ../www/* /srv/www
|
|
|
|
COPY ../vorlagen/* /srv/vorlagen
|
|
|
|
COPY ../fah /srv/fah
|
|
|
|
RUN ls -h /srv
|
2024-10-28 20:25:27 +01:00
|
|
|
|
|
|
|
# Entpacke die ZIP-Datei
|
|
|
|
RUN unzip /tmp/daten.zip -d /srv
|
|
|
|
|
|
|
|
# Setze die Umgebungsvariablen für LibreOffice
|
|
|
|
ENV HOME=/srv \
|
|
|
|
LANG=C.UTF-8 \
|
|
|
|
LC_ALL=C.UTF-8
|
|
|
|
|
|
|
|
# Setze den Arbeitsverzeichnis
|
|
|
|
WORKDIR /srv
|
|
|
|
|
|
|
|
# Exponiere den Port (falls benötigt)
|
|
|
|
EXPOSE 8000
|
|
|
|
|
|
|
|
# Führe das Skript `MSodt` aus
|
2024-10-30 00:03:39 +01:00
|
|
|
CMD ["/srv/fah"]
|