Skip to content

Commit

Permalink
fix(docker): use correct user for chmod
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Jul 21, 2023
1 parent 3633bb1 commit 091c37f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ RUN useradd \
RUN chsh --shell "/usr/bin/zsh" vscode
RUN chsh --shell "/usr/bin/zsh" codespace

# Switch to that user
USER codespace

# Install vscode extensions
WORKDIR /tmp/shakefu
COPY .devcontainer/extensions.sh ./extensions.sh
# TODO: Remove chmod once executable bit is set
RUN chmod +x extensions.sh
RUN chmod 777 extensions.sh
# Switch to codespace user to install extensions correctly
USER codespace
RUN ./extensions.sh && \
rm extensions.sh

Expand Down

0 comments on commit 091c37f

Please sign in to comment.