Skip to content

Commit

Permalink
[fix] make run-dev用にworkspacesの権限をuser_webservに変更
Browse files Browse the repository at this point in the history
  • Loading branch information
eito2002 committed Oct 12, 2024
1 parent f9f6706 commit 36c90e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ RUN rm -rf /var/lib/apt/lists/*

# 新しいユーザーを作成。この時点ではuserはroot
RUN useradd -ms /bin/bash user_webserv
RUN chown -R user_webserv:user_webserv /workspaces
# root権限が必要なinstall等を終えたら、作成したユーザーに切り替え
USER user_webserv

Expand Down

0 comments on commit 36c90e5

Please sign in to comment.