2020-10-22 23:02:59 +02:00
|
|
|
IMAGE seeddms_6.0.13-201021
|
|
|
|
FROM alpine3.12-php7.3_7.3.23-201021
|
2018-09-13 14:33:25 +02:00
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Install runtime dependencies
|
2020-10-22 23:02:59 +02:00
|
|
|
apk --no-cache add ghostscript imagemagick libreoffice-calc libreoffice-impress libreoffice-writer php7-curl php7-fileinfo php7-iconv php7-intl php7-openssl php7-pear php7-pdo_pgsql php7-simplexml php7-xml php7-xsl php7-zip poppler-utils python3 ttf-opensans
|
2019-11-30 09:59:32 +01:00
|
|
|
ln -s /usr/bin/python3 /usr/bin/python
|
2018-09-13 14:33:25 +02:00
|
|
|
|
|
|
|
# Install unoconv
|
|
|
|
wget https://raw.githubusercontent.com/dagwieers/unoconv/master/unoconv -O /usr/bin/unoconv
|
|
|
|
chmod +x /usr/bin/unoconv
|
|
|
|
|
|
|
|
# Install full-featured wget to work around sourceforge bugs
|
|
|
|
apk --no-cache add wget
|
|
|
|
|
|
|
|
# Install SeedDMS
|
2020-10-22 23:02:59 +02:00
|
|
|
wget https://sourceforge.net/projects/seeddms/files/seeddms-6.0.13/seeddms-quickstart-6.0.13.tar.gz/download -O - | tar xzf - -C /srv
|
2020-03-23 10:11:16 +01:00
|
|
|
mv /srv/seeddms* /srv/seeddms
|
2018-09-13 14:33:25 +02:00
|
|
|
EOF
|
|
|
|
|
2020-03-23 10:11:16 +01:00
|
|
|
COPY image.d
|
2018-09-13 14:33:25 +02:00
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Create OS user
|
2019-10-14 07:59:06 +02:00
|
|
|
addgroup -S -g 8080 seeddms
|
|
|
|
adduser -S -u 8080 -h /srv/seeddms -s /bin/false -g seeddms -G seeddms seeddms
|
2018-09-13 14:33:25 +02:00
|
|
|
chown -R seeddms:seeddms /srv/seeddms
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
apk --no-cache del wget
|
2020-10-22 23:02:59 +02:00
|
|
|
rm -f /srv/seeddms/www/install
|
2018-09-13 14:33:25 +02:00
|
|
|
rm -rf /srv/seeddms/data/conf /srv/seeddms/www/ext/example
|
|
|
|
EOF
|
|
|
|
|
2020-02-09 15:54:46 +01:00
|
|
|
CMD /bin/s6-svscan /etc/services.d
|