Skip to content

Commit

Permalink
Merge branch 'gh319-cacert-add-error' into 'main'
Browse files Browse the repository at this point in the history
Modify folder permissions to allow adding custom CAs

See merge request reportcreator/reportcreator!697
  • Loading branch information
aronmolnar committed Sep 3, 2024
2 parents 20aadb0 + 07d3f6e commit 48580e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,15 @@ RUN --mount=type=cache,target=/root/.cache/ \
# Unprivileged user
RUN useradd --uid=1000 --create-home --shell=/bin/bash user \
&& mkdir -p /data /app/api && chown user:user /data /app/api
# Change owner and permissions to allow adding custom CA certificates
RUN chown 0:1000 /etc/ssl/certs/ && \
chown 0:1000 /usr/local/share/ca-certificates/ && \
chmod g+w /etc/ssl/certs/ && \
chmod g+w /usr/local/share/ca-certificates/
USER 1000
VOLUME [ "/data" ]


# Configure application
ARG VERSION=dev
ENV VERSION=dev \
Expand Down

0 comments on commit 48580e8

Please sign in to comment.