Dateien nach "docker" hochladen
This commit is contained in:
parent
1329f0dfbe
commit
d6fd3f16e2
35
docker/Dockerfile
Normal file
35
docker/Dockerfile
Normal file
@ -0,0 +1,35 @@
|
||||
# Ausgangsbild von Alpine Linux
|
||||
FROM debian:latest
|
||||
|
||||
# Metadaten hinzufügen
|
||||
LABEL maintainer="maik@schmalle.click"
|
||||
|
||||
# Installiere benötigte Pakete
|
||||
RUN apt update && apt install -y \
|
||||
libreoffice \
|
||||
# libreoffice-writer \
|
||||
# libreoffice-calc \
|
||||
# libreoffice-impress \
|
||||
# openjdk8-jre \
|
||||
# ttf-dejavu \
|
||||
unzip
|
||||
|
||||
# Kopiere die ZIP-Datei in den Container
|
||||
COPY ./daten.zip /tmp/daten.zip
|
||||
|
||||
# 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
|
||||
CMD ["/srv/MSodt"]
|
6
docker/compose.yml
Normal file
6
docker/compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
services:
|
||||
fah:
|
||||
build: .
|
||||
container_name: fah-container
|
||||
ports:
|
||||
- "8000:8000"
|
Loading…
Reference in New Issue
Block a user