File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ RUN pip3 wheel --wheel-dir=/tmp/wheels -r ./requirements.txt
29
29
FROM base as django
30
30
WORKDIR /app
31
31
ARG uid=1001
32
+ ARG gid=1337
32
33
ARG appuser=defectdojo
33
34
ENV appuser ${appuser}
34
35
RUN \
@@ -88,10 +89,14 @@ RUN \
88
89
true
89
90
USER root
90
91
RUN \
92
+ addgroup --gid ${gid} ${appuser} && \
91
93
adduser --system --no-create-home --disabled-password --gecos '' \
92
- --uid ${uid} ${appuser} && \
94
+ --uid ${uid} --gid ${gid} ${appuser} && \
93
95
chown -R root:root /app && \
94
96
chmod -R u+rwX,go+rX,go-w /app && \
97
+ # Allow for bind mounting local_settings.py and other setting overrides
98
+ chown -R root:${appuser} /app/dojo/settings && \
99
+ chmod -R 775 /app/dojo/settings && \
95
100
mkdir /var/run/${appuser} && \
96
101
chown ${appuser} /var/run/${appuser} && \
97
102
chmod g=u /var/run/${appuser} && \
You can’t perform that action at this time.
0 commit comments