2018-09-13 14:33:25 +02:00
|
|
|
IMAGE seeddms
|
2019-02-26 20:24:02 +01:00
|
|
|
LAYER shared/alpine3.9
|
|
|
|
LAYER shared/alpine3.9-php7.2
|
|
|
|
LAYER shared/alpine3.9-python3.6
|
2018-09-13 14:33:25 +02:00
|
|
|
LAYER seeddms/seeddms
|
|
|
|
|
|
|
|
FIXLAYER /usr/bin/fix-apk
|
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Install runtime dependencies
|
2019-05-11 13:45:15 +02: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 ttf-opensans
|
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
|
2019-05-08 17:25:10 +02:00
|
|
|
wget https://sourceforge.net/projects/seeddms/files/seeddms-5.1.9/seeddms-quickstart-5.1.9.tar.gz/download -O /srv/seeddms.tgz
|
2018-09-13 14:33:25 +02:00
|
|
|
tar xzf /srv/seeddms.tgz -C /srv
|
|
|
|
mv /srv/seeddms51x /srv/seeddms
|
|
|
|
rm -f /srv/seeddms.tgz
|
|
|
|
EOF
|
|
|
|
|
|
|
|
COPY lxc
|
|
|
|
|
|
|
|
RUN EOF
|
|
|
|
# Patch Previewers
|
|
|
|
cd /srv/seeddms
|
|
|
|
patch -p0 <previewers.patch
|
|
|
|
rm previewers.patch
|
|
|
|
|
|
|
|
# Create OS user
|
|
|
|
addgroup -S -g 8010 seeddms
|
|
|
|
adduser -S -u 8010 -h /srv/seeddms -s /bin/false -g seeddms -G seeddms seeddms
|
|
|
|
chown -R seeddms:seeddms /srv/seeddms
|
|
|
|
|
|
|
|
# Cleanup
|
|
|
|
apk --no-cache del wget
|
|
|
|
mv /srv/seeddms/www/install/create_tables-postgres.sql /srv/seeddms/create_tables-postgres.sql
|
|
|
|
rm -rf /srv/seeddms/seeddms/install /srv/seeddms/www/install
|
|
|
|
rm -rf /srv/seeddms/data/conf /srv/seeddms/www/ext/example
|
|
|
|
EOF
|
|
|
|
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/seeddms/conf srv/seeddms/conf
|
|
|
|
MOUNT DIR /srv/seeddms/data srv/seeddms/data
|
2018-09-13 14:33:25 +02:00
|
|
|
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD s6-svscan /etc/services.d
|