2018-05-01 10:03:35 +02:00
|
|
|
FROM php
|
2018-01-08 15:06:11 +01:00
|
|
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
# Install runtime dependencies
|
2018-05-10 14:47:25 +02:00
|
|
|
apk --no-cache add ghostscript imagemagick libreoffice-calc libreoffice-impress libreoffice-writer php7-iconv php7-pear php7-pdo_pgsql php7-simplexml php7-xml poppler-utils ttf-opensans
|
2018-01-08 21:04:35 +01:00
|
|
|
|
|
|
|
RUN \
|
2018-01-08 15:06:11 +01:00
|
|
|
# Install unoconv
|
2018-03-27 14:13:01 +02:00
|
|
|
wget https://raw.githubusercontent.com/dagwieers/unoconv/master/unoconv -O /usr/bin/unoconv \
|
|
|
|
&& chmod +x /usr/bin/unoconv \
|
2018-01-08 15:06:11 +01:00
|
|
|
&& ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
|
|
|
|
RUN \
|
2018-01-19 18:12:39 +01:00
|
|
|
# Install full-featured wget to work around sourceforge bugs
|
|
|
|
apk --no-cache add wget \
|
2018-01-08 15:06:11 +01:00
|
|
|
# Install SeedDMS
|
2018-07-10 18:30:03 +02:00
|
|
|
&& wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.8/seeddms-quickstart-5.1.8.tar.gz/download -O /srv/seeddms.tgz \
|
2018-01-08 15:06:11 +01:00
|
|
|
&& tar xzf /srv/seeddms.tgz -C /srv \
|
|
|
|
&& mv /srv/seeddms51x /srv/seeddms \
|
|
|
|
&& rm -f /srv/seeddms.tgz \
|
|
|
|
&& chown -R root:root /srv/seeddms \
|
|
|
|
# Create OS user
|
|
|
|
&& addgroup -S -g 8010 seeddms \
|
|
|
|
&& adduser -S -u 8010 -h /srv/seeddms -s /bin/false -g seeddms -G seeddms seeddms \
|
2018-03-27 14:13:01 +02:00
|
|
|
&& chown -R seeddms:seeddms /srv/seeddms \
|
2018-01-08 15:06:11 +01:00
|
|
|
# Cleanup
|
2018-01-29 16:47:27 +01:00
|
|
|
&& apk --no-cache del wget \
|
2018-05-05 22:53:42 +02:00
|
|
|
&& mv /srv/seeddms/www/install/create_tables-postgres.sql /srv/seeddms/create_tables-postgres.sql \
|
|
|
|
&& rm -rf /srv/seeddms/seeddms/install /srv/seeddms/www/install \
|
|
|
|
&& rm -rf /srv/seeddms/data/conf /srv/seeddms/www/ext/example
|
2018-01-08 15:06:11 +01:00
|
|
|
|
2018-03-27 14:13:01 +02:00
|
|
|
COPY docker/etc/ /etc/
|
|
|
|
|
|
|
|
COPY --chown=8010:8010 docker/srv/seeddms/ /srv/seeddms/
|
2018-01-08 15:06:11 +01:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
# Patch Previewers
|
|
|
|
cd /srv/seeddms \
|
2018-08-23 10:45:18 +02:00
|
|
|
&& patch -p0 <previewers.patch
|
2018-01-08 15:06:11 +01:00
|
|
|
|
2018-05-05 22:53:42 +02:00
|
|
|
VOLUME ["/srv/seeddms/conf", "/srv/seeddms/data"]
|
2018-03-25 23:20:57 +02:00
|
|
|
EXPOSE 8080
|
2018-01-08 15:06:11 +01:00
|
|
|
|
|
|
|
CMD ["s6-svscan", "/etc/services.d"]
|