mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 01:31:39 -05:00
Use root user for dawarich in docker container
This commit is contained in:
parent
72c588e261
commit
b89a2096a7
2 changed files with 4 additions and 3 deletions
|
|
@ -31,12 +31,13 @@ RUN gem update --system 3.5.7 && gem install bundler --version "$BUNDLE_VERSION"
|
||||||
&& rm -rf $GEM_HOME/cache/*
|
&& rm -rf $GEM_HOME/cache/*
|
||||||
|
|
||||||
|
|
||||||
RUN adduser -D -h ${APP_PATH} vscode
|
# FIXME It would be a good idea to use a other user than root, but this lead to permission error on export and maybe more yet.
|
||||||
|
# RUN adduser -D -h ${APP_PATH} vscode
|
||||||
|
USER root
|
||||||
|
|
||||||
# Navigate to app directory
|
# Navigate to app directory
|
||||||
WORKDIR $APP_PATH
|
WORKDIR $APP_PATH
|
||||||
|
|
||||||
USER vscode
|
|
||||||
|
|
||||||
EXPOSE $RAILS_PORT
|
EXPOSE $RAILS_PORT
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@
|
||||||
],
|
],
|
||||||
"postCreateCommand": "yarn install && bundle config set --local path 'vendor/bundle' && bundle install --jobs 20 --retry 5",
|
"postCreateCommand": "yarn install && bundle config set --local path 'vendor/bundle' && bundle install --jobs 20 --retry 5",
|
||||||
"forwardPorts": [3000], // Weiterleitung für Rails-Server
|
"forwardPorts": [3000], // Weiterleitung für Rails-Server
|
||||||
"remoteUser": "vscode",
|
"remoteUser": "root",
|
||||||
"workspaceFolder": "/var/app"
|
"workspaceFolder": "/var/app"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue