2022-01-28 17:23:51 +01:00
|
|
|
FROM php:7.4-apache
|
|
|
|
|
|
|
|
ENV SERVERNAME=localhost
|
2022-01-28 18:23:43 +01:00
|
|
|
ENV UPLOAD_MAX_FILESIZE=24M
|
|
|
|
ENV POST_MAX_SIZE=24M
|
|
|
|
ENV MAX_FILE_UPLOADS=201
|
2023-04-21 12:32:35 +02:00
|
|
|
ENV PDF_STORAGE_PATH=/data
|
2023-03-14 17:18:10 +01:00
|
|
|
ENV DISABLE_ORGANIZATION=false
|
2023-03-18 00:24:29 +01:00
|
|
|
ENV PDF_DEMO_LINK=true
|
2022-01-28 17:23:51 +01:00
|
|
|
|
2022-04-11 09:27:22 +02:00
|
|
|
RUN apt update && \
|
2022-12-03 09:52:58 +01:00
|
|
|
apt install -y gettext-base librsvg2-bin pdftk imagemagick potrace && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
2022-01-28 17:23:51 +01:00
|
|
|
|
|
|
|
COPY . /usr/local/signaturepdf
|
|
|
|
|
2023-04-21 12:32:35 +02:00
|
|
|
RUN envsubst < /usr/local/signaturepdf/config/php.ini > /usr/local/etc/php/conf.d/uploads.ini && \
|
2022-04-01 17:36:53 +02:00
|
|
|
envsubst < /usr/local/signaturepdf/config/apache.conf > /etc/apache2/sites-available/signaturepdf.conf && \
|
2022-04-11 09:27:22 +02:00
|
|
|
envsubst < /usr/local/signaturepdf/config/config.ini.tpl > /usr/local/signaturepdf/config/config.ini && \
|
2022-01-28 17:23:51 +01:00
|
|
|
a2enmod rewrite && a2ensite signaturepdf
|
|
|
|
|
|
|
|
WORKDIR /usr/local/signaturepdf
|
|
|
|
|
2022-04-11 09:27:22 +02:00
|
|
|
CMD /usr/local/signaturepdf/entrypoint.sh
|