Edit Dockerfile, two changes to reduce the image size and avoid to be as root in the container
This commit is contained in:
parent
3ee536cff3
commit
66cc24abd1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue