43 lines
1.4 KiB
Docker
43 lines
1.4 KiB
Docker
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
|
|
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 \
|
|
# Install unoconv
|
|
&& wget https://raw.githubusercontent.com/dagwieers/unoconv/master/unoconv -O /usr/local/bin/unoconv \
|
|
&& 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"]
|