Spotter-VM/lxc-apps/seeddms/image

36 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-03-23 10:11:16 +01:00
IMAGE seeddms_5.1.15-200313
FROM alpine3.11-php7.3_7.3.15-200313
2018-09-13 14:33:25 +02:00
RUN EOF
# Install runtime dependencies
2019-11-30 09:59:32 +01:00
apk --no-cache add ghostscript imagemagick libreoffice-calc libreoffice-impress libreoffice-writer php7-fileinfo php7-iconv php7-openssl php7-pear php7-pdo_pgsql php7-simplexml php7-xml poppler-utils python3 ttf-opensans
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-03-23 10:11:16 +01:00
wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.15/seeddms-quickstart-5.1.15.tar.gz/download -O - | tar xzf - -C /srv
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
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-03-23 11:32:11 +01:00
rm -rf /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