Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile for electronic signature #128

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ ENV PDF_STORAGE_PATH=/data
ENV DISABLE_ORGANIZATION=false
ENV DEFAULT_LANGUAGE=fr_FR.UTF-8
ENV PDF_STORAGE_ENCRYPTION=false
ENV NSS3_DIRECTORY=/nss3
ENV NSS3_PASSWORD=toto
ENV NSS3_NICK="PDF certificate"
ENV ADMIN_AUTHORIZED_IP=127.0.0.1

RUN apt update && \
apt install -y vim locales gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript gpg && \
apt install -y vim locales gettext-base librsvg2-bin pdftk imagemagick potrace ghostscript gpg poppler-utils libnss3-tools && \
docker-php-ext-install gettext && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -23,4 +27,4 @@ RUN envsubst < /usr/local/signaturepdf/config/php.ini > /usr/local/etc/php/conf.

WORKDIR /usr/local/signaturepdf

CMD /usr/local/signaturepdf/entrypoint.sh
CMD ["/usr/local/signaturepdf/entrypoint.sh"]
8 changes: 8 additions & 0 deletions config/config.ini.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ PDF_DEMO_LINK=${PDF_DEMO_LINK}

; Encryption activation (default activation if GPG is installed)
PDF_STORAGE_ENCRYPTION=${PDF_STORAGE_ENCRYPTION}

;NSS3 configuration (used to sign pdf with pdfsig)
NSS3_DIRECTORY=${NSS3_DIRECTORY}
NSS3_PASSWORD=${NSS3_PASSWORD}
NSS3_NICK=${NSS3_NICK}

; Authorize these IP to use debug mode (separate IP adresses with space ' ')
ADMIN_AUTHORIZED_IP=${ADMIN_AUTHORIZED_IP}