mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
non-root docker: create bugsink-owned /data dir
without it, won't even build (/data creation happened during build b/c migrations triggered it when the settings were loaded) See #176
This commit is contained in:
@@ -46,7 +46,11 @@ COPY bugsink/conf_templates/docker.py.template bugsink_conf.py
|
||||
# Git is needed by setuptools_scm to get the version from the git tag
|
||||
RUN apt update && apt install -y git
|
||||
RUN pip install -e .
|
||||
RUN groupadd -r bugsink && useradd -r -g bugsink bugsink
|
||||
|
||||
RUN groupadd -r bugsink \
|
||||
&& useradd -r -g bugsink bugsink \
|
||||
&& mkdir -p /data \
|
||||
&& chown -R bugsink:bugsink /data
|
||||
|
||||
USER bugsink
|
||||
|
||||
|
||||
Reference in New Issue
Block a user