Update Dockerfile
This commit is contained in:
parent
1987c0c807
commit
fa818adfd9
29
Dockerfile
29
Dockerfile
|
@ -1,16 +1,16 @@
|
||||||
FROM php:7.4-apache
|
FROM php:7.4-apache
|
||||||
LABEL maintainer="Niels Lippke<nlippke@gmx.de>"
|
LABEL maintainer="Namhyeon Go<gnh1201@gmail.com>, Niels Lippke<nlippke@gmx.de>"
|
||||||
ENV VER 6.0.23
|
ENV VER 6.0.28
|
||||||
ENV PAPERLESS_VER 1.1.0
|
ENV PAPERLESS_VER 1.1.0
|
||||||
ENV SEEDDMS_BASE=/var/www/seeddms \
|
ENV SEEDDMS_BASE=/var/www/seeddms \
|
||||||
SEEDDMS_HOME=/var/www/seeddms/seeddms
|
SEEDDMS_HOME=/var/www/seeddms/seeddms-${VER}
|
||||||
ENV PUBLIC_CERT=${SEEDDMS_BASE}/conf/cacert.pem \
|
ENV PUBLIC_CERT=${SEEDDMS_BASE}/conf/cacert.pem \
|
||||||
PUBLIC_CERT_SUBJ=/CN=localhost \
|
PUBLIC_CERT_SUBJ=/CN=localhost \
|
||||||
PRIVATE_KEY=${SEEDDMS_BASE}/conf/cakey.pem \
|
PRIVATE_KEY=${SEEDDMS_BASE}/conf/cakey.pem \
|
||||||
FORCE_SSL=0
|
FORCE_SSL=0
|
||||||
|
|
||||||
# Update and install necessary packages
|
# Update and install necessary packages
|
||||||
RUN apt-get update && apt-get install --no-install-recommends gnumeric libpng-dev catdoc poppler-utils a2ps html2text \
|
RUN apt-get update && apt-get install --no-install-recommends git gnumeric libpng-dev catdoc poppler-utils a2ps html2text \
|
||||||
id3 docx2txt tesseract-ocr tesseract-ocr-deu ocrmypdf imagemagick vim parallel dos2unix cron rsync libzip-dev \
|
id3 docx2txt tesseract-ocr tesseract-ocr-deu ocrmypdf imagemagick vim parallel dos2unix cron rsync libzip-dev \
|
||||||
libldb-dev libldap2-dev libxslt1-dev \
|
libldb-dev libldap2-dev libxslt1-dev \
|
||||||
libmagickwand-dev -y && rm -rf /var/lib/apt/lists/*
|
libmagickwand-dev -y && rm -rf /var/lib/apt/lists/*
|
||||||
|
@ -21,21 +21,21 @@ RUN docker-php-ext-install gd mysqli pdo pdo_mysql zip ldap xsl intl && \
|
||||||
|
|
||||||
# Get seeddms
|
# Get seeddms
|
||||||
RUN curl -fsSL https://downloads.sourceforge.net/project/seeddms/seeddms-${VER}/seeddms-quickstart-${VER}.tar.gz | tar -xzC /var/www
|
RUN curl -fsSL https://downloads.sourceforge.net/project/seeddms/seeddms-${VER}/seeddms-quickstart-${VER}.tar.gz | tar -xzC /var/www
|
||||||
RUN mv /var/www/seeddms60x /var/www/seeddms && mkdir /var/www/seeddms/backup && mkdir -p /var/www/seeddms/import/admin && \
|
RUN mv /var/www/seeddms60x $SEEDDMS_BASE
|
||||||
mv /var/www/seeddms/conf /var/www/seeddms/data/conf && ln -s /var/www/seeddms/data/conf /var/www/seeddms/conf && \
|
|
||||||
mkdir $SEEDDMS_HOME/ext && touch /var/www/seeddms/conf/ENABLE_INSTALL_TOOL && \
|
WORKDIR $SEEDDMS_BASE
|
||||||
curl -fsSL -o /tmp/paperless.zip https://github.com/SeedDMS/paperless/releases/download/${PAPERLESS_VER}/paperless-${PAPERLESS_VER}.zip && \
|
RUN mkdir backup && mkdir -p import/admin && mkdir ext && touch conf/ENABLE_INSTALL_TOOL && \
|
||||||
unzip -d /var/www/seeddms/www/ext/paperless /tmp/paperless.zip && rm -f /tmp/paperless.zip
|
git clone https://codeberg.org/SeedDMS/paperless www/ext/paperless
|
||||||
|
|
||||||
# Copy settings-files
|
# Copy settings-files
|
||||||
COPY sources/php.ini /usr/local/etc/php/
|
COPY sources/php.ini /usr/local/etc/php/
|
||||||
COPY sources/000-default.conf /etc/apache2/sites-available/
|
COPY sources/000-default.conf /etc/apache2/sites-available/
|
||||||
COPY sources/settings.xml /var/www/seeddms/data/conf/settings.xml
|
COPY sources/settings.xml $SEEDDMS_BASE/conf/settings.xml
|
||||||
COPY sources/seeddms-entrypoint /usr/local/bin
|
COPY sources/seeddms-entrypoint /usr/local/bin
|
||||||
COPY sources/*.sh /usr/local/bin/
|
COPY sources/*.sh /usr/local/bin/
|
||||||
COPY sources/policy.xml /etc/ImageMagick-6/policy.xml
|
COPY sources/policy.xml /etc/ImageMagick-6/policy.xml
|
||||||
|
|
||||||
RUN chown -R www-data:www-data /var/www/seeddms/ && \
|
RUN chown -R www-data:www-data ./ && \
|
||||||
dos2unix /usr/local/bin/*.sh && chmod a+rx /usr/local/bin/*.sh && \
|
dos2unix /usr/local/bin/*.sh && chmod a+rx /usr/local/bin/*.sh && \
|
||||||
dos2unix /usr/local/bin/seeddms-entrypoint && chmod a+rx /usr/local/bin/seeddms-entrypoint && \
|
dos2unix /usr/local/bin/seeddms-entrypoint && chmod a+rx /usr/local/bin/seeddms-entrypoint && \
|
||||||
a2enmod rewrite && \
|
a2enmod rewrite && \
|
||||||
|
@ -51,10 +51,7 @@ RUN ln -s ../mods-available/ssl.conf ssl.conf && \
|
||||||
ln -s ../mods-available/ssl.load ssl.load && \
|
ln -s ../mods-available/ssl.load ssl.load && \
|
||||||
ln -s ../mods-available/socache_shmcb.load socache_shmcb.load
|
ln -s ../mods-available/socache_shmcb.load socache_shmcb.load
|
||||||
|
|
||||||
WORKDIR $SEEDDMS_BASE
|
VOLUME ["/var/www/seeddms/data", "/var/www/seeddms/backup"]
|
||||||
|
|
||||||
# Volumes to mount
|
ENTRYPOINT ["/usr/local/bin/seeddms-entrypoint"]
|
||||||
VOLUME [ "/var/www/seeddms/backup", "/var/www/seeddms/import", "/var/www/seeddms/www/ext" ]
|
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/seeddms-entrypoint"]
|
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user