geändert: docker/Dockerfile
neue Datei: fah geändert: utils.go gelöscht: vorlagen/.~lock.passwortschreiben.odt# geändert: vorlagen/passwortschreiben.odt geändert: www/data/passwort.odt
This commit is contained in:
parent
edc2f290d9
commit
ef79f0dcc8
@ -2,20 +2,25 @@
|
||||
FROM debian:latest
|
||||
|
||||
# Metadaten hinzufügen
|
||||
LABEL maintainer="maik@schmalle.click"
|
||||
LABEL maintainer="fah@schmalle.click"
|
||||
|
||||
# Installiere benötigte Pakete
|
||||
RUN apt update && apt install -y \
|
||||
libreoffice \
|
||||
# libreoffice-writer \
|
||||
# libreoffice-calc \
|
||||
# libreoffice-impress \
|
||||
# openjdk8-jre \
|
||||
# ttf-dejavu \
|
||||
libreoffice-writer \
|
||||
libreoffice-calc \
|
||||
libreoffice-impress \
|
||||
openjdk8-jre \
|
||||
ttf-dejavu \
|
||||
fonts-crosextra-carlito \
|
||||
fonts-crosextra-caladea \
|
||||
unzip
|
||||
|
||||
# Kopiere die ZIP-Datei in den Container
|
||||
COPY ./daten.zip /tmp/daten.zip
|
||||
COPY ../www/* /srv/www
|
||||
COPY ../vorlagen/* /srv/vorlagen
|
||||
COPY ../fah /srv/fah
|
||||
RUN ls -h /srv
|
||||
|
||||
# Entpacke die ZIP-Datei
|
||||
RUN unzip /tmp/daten.zip -d /srv
|
||||
|
2
utils.go
2
utils.go
@ -29,7 +29,7 @@ func fileToString(filename string) string {
|
||||
}
|
||||
|
||||
func makepdf(odtdatei string) {
|
||||
cmd := exec.Command("/usr/lib/libreoffice/program/soffice.bin", "--headless", "--convert-to", "pdf", "--outdir", "./www/data", odtdatei)
|
||||
cmd := exec.Command("/usr/lib/libreoffice/program/soffice.bin", "--headless", "--convert-to", "--embed-fonts", "pdf", "--outdir", "./www/data", odtdatei)
|
||||
output, err := cmd.Output()
|
||||
if err != nil {
|
||||
fmt.Println("Fehler beim Ausführen des Befehls:", err)
|
||||
|
@ -1 +0,0 @@
|
||||
Maik Schmalle,masilux,Tuxedo-Maik,28.10.2024 20:03,file:///home/masilux/.config/libreoffice/4;
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user