Skip to content

Commit

Permalink
devcontainer: fix permissions (caketop#177)
Browse files Browse the repository at this point in the history
using the --chown flag in Dockerfile
  • Loading branch information
tadamcz authored May 30, 2023
1 parent 661a2ec commit 2eaff15
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,17 @@ ARG USERNAME

RUN echo "set auto-load safe-path /" > /home/${USERNAME}/.gdbinit

COPY --from=go_tools /home/${USERNAME}/go/bin/ /home/${USERNAME}/go/bin
COPY --from=go_tools --chown=${USERNAME} /home/${USERNAME}/go/bin/ /home/${USERNAME}/go/bin

RUN python3.10 -m venv /home/${USERNAME}/venv

ENV PATH=/home/${USERNAME}/venv/bin:/opt/python/cp310-cp310/bin:${PATH}

RUN python3.10 -m pip install black ipython isort memray pytest pytest-memray pytest-valgrind tox

COPY --from=misc /tmp/shellcheck/shellcheck /home/${USERNAME}/.local/bin/shellcheck
COPY --from=misc /tmp/mcfly/mcfly /home/${USERNAME}/.local/bin/mcfly
COPY --from=misc /tmp/clang/bin/clang-format /home/${USERNAME}/.local/bin/clang-format
COPY --from=misc --chown=${USERNAME} /tmp/shellcheck/shellcheck /home/${USERNAME}/.local/bin/shellcheck
COPY --from=misc --chown=${USERNAME} /tmp/mcfly/mcfly /home/${USERNAME}/.local/bin/mcfly
COPY --from=misc --chown=${USERNAME} /tmp/clang/bin/clang-format /home/${USERNAME}/.local/bin/clang-format

RUN echo 'eval "$(mcfly init bash)"' >> ~/.bashrc && touch ~/.bash_history
RUN echo 'eval "$(starship init bash)"' >> ~/.bashrc
Expand Down

0 comments on commit 2eaff15

Please sign in to comment.