Use root user for dawarich in docker container

This commit is contained in:
Sven Anders 2024-12-15 17:25:42 +01:00
parent 72c588e261
commit b89a2096a7
2 changed files with 4 additions and 3 deletions

View file

@ -31,12 +31,13 @@ RUN gem update --system 3.5.7 && gem install bundler --version "$BUNDLE_VERSION"
&& 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
WORKDIR $APP_PATH
USER vscode
EXPOSE $RAILS_PORT

View file

@ -12,6 +12,6 @@
],
"postCreateCommand": "yarn install && bundle config set --local path 'vendor/bundle' && bundle install --jobs 20 --retry 5",
"forwardPorts": [3000], // Weiterleitung für Rails-Server
"remoteUser": "vscode",
"remoteUser": "root",
"workspaceFolder": "/var/app"
}