Spotter-VM/seeddms/Dockerfile

45 lines
1.4 KiB
Docker
Raw 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-fpm s6
RUN \
# Install runtime dependencies
2018-01-08 21:04:35 +01:00
apk --no-cache add ghostscript imagemagick libreoffice-calc libreoffice-impress libreoffice-writer php7-gd php7-iconv php7-json php7-mbstring php7-pear php7-pdo_pgsql php7-simplexml php7-xml poppler-utils
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 SeedDMS
wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.5/seeddms-quickstart-5.1.5.tar.gz/download -O /srv/seeddms.tgz \
&& 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
&& 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"]