Skip to content

Commit 68c1af5

Browse files
committed
Ensure cargo home directory exists and gitpod user has permissions
1 parent 56f6cce commit 68c1af5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

full/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ ENV PATH=$PATH:$HOME/.cargo/bin
199199
ENV CARGO_HOME=/workspace/.cargo
200200
ENV PATH=$CARGO_HOME/bin:$PATH
201201

202+
USER root
203+
RUN mkdir -p $CARGO_HOME \
204+
&& chown -R gitpod.gitpod $CARGO_HOME
205+
USER gitpod
202206
RUN bash -lc "cargo install cargo-watch cargo-edit cargo-tree cargo-workspaces"
203207

204208
### Docker ###

0 commit comments

Comments
 (0)