diff options
Diffstat (limited to 'Services/ooconv/Dockerfile')
-rw-r--r-- | Services/ooconv/Dockerfile | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Services/ooconv/Dockerfile b/Services/ooconv/Dockerfile index f8ce949..feeed82 100644 --- a/Services/ooconv/Dockerfile +++ b/Services/ooconv/Dockerfile @@ -2,15 +2,16 @@ FROM startx/fedora MAINTAINER Christophe LARUE <dev@startx.fr> USER root -# Install packages and set up unoconv -RUN dnf -y install unoconv libreoffice-headless libreoffice-writer libreoffice-calc pdftk gs \ - && dnf clean all \ - && mkdir -p /tmp/ootmp -# Copy startx toolkit -COPY sx/* /sx/ -RUN chmod ug+rx /sx/ooconv* +RUN dnf -y install unoconv libreoffice-headless libreoffice-writer libreoffice-calc pdfmod ghostscript && \ + dnf clean all +ENV STARTUPLOG=/data/logs/ooconv/startup.log \ + LOG_PATH=/data/logs/ooconv +COPY *.sh /bin/ +RUN chmod 775 /bin/run.sh && \ + mkdir -p $LOG_PATH && \ + mkdir -p /tmp/ootmp && \ + touch $STARTUPLOG EXPOSE 2002 -VOLUME ["/tmp/ootmp"] - -CMD ["/sx/ooconv_run.sh"]
\ No newline at end of file +VOLUME [$LOG_PATH] +CMD ["/bin/run.sh"]
\ No newline at end of file |