Skip to content

Commit ea9494a

Browse files
committed
Ensure user owns logs location
1 parent f652d40 commit ea9494a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ COPY log.conf gunicorn.conf.py ./
3939
COPY logs ./logs
4040

4141
RUN adduser --disabled-password --gecos '' libdb && \
42-
chown -R libdb:libdb /app
42+
chown -R libdb:libdb /app && \
43+
mkdir -p /etc/libdb/logs && \
44+
chown -R libdb:libdb /etc/libdb/logs
4345

4446
USER libdb
4547

0 commit comments

Comments
 (0)