mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 15:43:14 +01:00
Merge pull request #77 from vrifox/add-userid-variable
Container: Add userid variable
This commit is contained in:
commit
0e72ac66c8
3 changed files with 7 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
|||
USER_ID=1000 # Set if your user id is different (`id -u`)
|
||||
APPLICATION_HOST=localhost
|
||||
ESDATA=../esdata
|
|
@ -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 --uid $USER_ID -g srm srm
|
||||
RUN chown -R srm:srm /home/srm
|
||||
USER srm
|
||||
|
||||
|
|
|
@ -2,7 +2,10 @@ version: "3.7"
|
|||
services:
|
||||
web:
|
||||
user: srm
|
||||
build: .
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
- USER_ID=${USER_ID:-1000}
|
||||
volumes:
|
||||
- .:/app
|
||||
ports:
|
||||
|
|
Loading…
Reference in a new issue