mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue