mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2025-05-07 21:41:53 +02:00
add userid variable
Add a variable for the userid and use 1000 as default.
This commit is contained in:
parent
2a39a2d454
commit
1a8d823a17
2 changed files with 6 additions and 2 deletions
|
@ -18,7 +18,8 @@ RUN chmod +x docker-entrypoint.sh
|
|||
RUN mkdir -p /home/srm/tmp
|
||||
#COPY Gemfile.lock /home/srm/tmp/Gemfile.lock
|
||||
|
||||
RUN groupadd -r srm && useradd -r -g srm srm
|
||||
ARG USER_ID=1000
|
||||
RUN groupadd srm && useradd -D --uid $USER_ID -g srm srm
|
||||
RUN chown -R srm:srm /home/srm
|
||||
USER srm
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue