Skip to content

Commit

Permalink
Move copy operation before switching user
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonR99 authored Feb 4, 2024
1 parent e60640e commit 19620c5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ RUN apt update && apt upgrade -y
# Install Git
RUN apt install -y git

# Copy to preload the ros packages
COPY ./ /workspace/$USERNAME/
RUN chown -R $USERNAME:$USERNAME /workspace/$USERNAME

# Change user
USER $USERNAME

# Copy to preload the ros packages
COPY --chown=$USERNAME:$USERNAME ./ /workspace/$USERNAME/

# Rosdep update
RUN rosdep update
RUN rosdep install --from-paths src --ignore-src --rosdistro humble -y
Expand Down

0 comments on commit 19620c5

Please sign in to comment.