summaryrefslogtreecommitdiffstats
path: root/Services/ooconv/Dockerfile
blob: feeed820568bc6b7549fa10ac51514c4758970d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>

USER root
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 [$LOG_PATH]
CMD ["/bin/run.sh"]