summaryrefslogtreecommitdiffstats
path: root/Services/ooconv/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-29 23:52:56 +0100
committerstartxfr <clarue@startx.fr>2015-11-29 23:52:56 +0100
commitd3189d55206417557b03fde732693aaffca54cf8 (patch)
tree1c3d7ea129879cbff7cb534a4222ee13aadb6f3e /Services/ooconv/Dockerfile
parenta4930f0838f1224bdf4fa0885e858e7a865513ca (diff)
downloadphpmyadmin-d3189d55206417557b03fde732693aaffca54cf8.tar.gz
phpmyadmin-d3189d55206417557b03fde732693aaffca54cf8.tar.bz2
phpmyadmin-d3189d55206417557b03fde732693aaffca54cf8.tar.xz
phpmyadmin-d3189d55206417557b03fde732693aaffca54cf8.zip
bugfix for mongo service and reshapping of ooconv
Diffstat (limited to 'Services/ooconv/Dockerfile')
-rw-r--r--Services/ooconv/Dockerfile21
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