1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-06-01 21:42:31 +02:00

Edit Dockerfile, two changes to reduce the image size and avoid to be as root in the container

This commit is contained in:
Jonas Chopin-Revel 2022-12-03 09:52:58 +01:00
parent 3ee536cff3
commit 66cc24abd1

View file

@ -7,7 +7,8 @@ ENV MAX_FILE_UPLOADS=201
ENV PDF_STORAGE_PATH=
RUN apt update && \
apt install -y gettext-base librsvg2-bin pdftk imagemagick potrace
apt install -y gettext-base librsvg2-bin pdftk imagemagick potrace && \
rm -rf /var/lib/apt/lists/*
COPY . /usr/local/signaturepdf
@ -20,4 +21,6 @@ RUN chown -R www-data:www-data /usr/local/signaturepdf && chmod 750 -R /usr/loca
WORKDIR /usr/local/signaturepdf
USER www-data
CMD /usr/local/signaturepdf/entrypoint.sh