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
1 changed files with 4 additions and 1 deletions

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