Spotter-VM/seeddms/Dockerfile

48 lines
1.5 KiB
Docker
Raw Permalink Normal View History

2018-01-08 15:06:11 +01:00
FROM alpine:3.7
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install PHP runtime
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session s6
2018-01-08 15:06:11 +01:00
RUN \
# Install runtime dependencies
2018-01-24 15:52:13 +01: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
2018-01-08 21:04:35 +01:00
RUN \
2018-01-08 15:06:11 +01:00
# Install unoconv
2018-01-08 21:04:35 +01:00
wget https://raw.githubusercontent.com/dagwieers/unoconv/master/unoconv -O /usr/local/bin/unoconv \
2018-01-08 15:06:11 +01:00
&& chmod +x /usr/local/bin/unoconv \
&& ln -s /usr/bin/python3 /usr/bin/python
RUN \
# Install full-featured wget to work around sourceforge bugs
apk --no-cache add wget \
2018-01-08 15:06:11 +01:00
# Install SeedDMS
&& wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.5/seeddms-quickstart-5.1.5.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 \
# Cleanup
&& apk --no-cache del wget \
2018-01-08 15:06:11 +01:00
&& cp /srv/seeddms/www/install/create_tables-postgres.sql /srv/seeddms/create_tables-postgres.sql \
&& rm -rf /srv/seeddms/www/install
COPY docker/ /
RUN \
# Patch Previewers
cd /srv/seeddms \
&& patch -p0 </srv/seeddms/previewers.patch
# TODO: id3 ?
VOLUME ["/srv/seeddms/www/config", "/srv/seeddms/data"]
EXPOSE 8010
CMD ["s6-svscan", "/etc/services.d"]