diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 4239ee5d..d830a97b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -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 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c93d6994..2442d774 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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" }