File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
FROM mcr.microsoft.com/devcontainers/rust:1
4
4
5
5
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
6
- && apt-get -y install --no-install-recommends lld python3-pip \
6
+ && apt-get -y install --no-install-recommends lld pipx \
7
+ && pipx install pre-commit \
7
8
&& rustup update \
8
9
&& rustup toolchain install nightly --profile minimal --component clippy,rustfmt
9
10
COPY config /root/.cargo/config
Original file line number Diff line number Diff line change 21
21
],
22
22
23
23
// Use 'postCreateCommand' to run commands after the container is created.
24
- "postCreateCommand" : " pip install --user --upgrade pre-commit && pre-commit install --install-hooks" ,
24
+ "postCreateCommand" : " pre-commit install --install-hooks" ,
25
25
26
26
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
27
27
"remoteUser" : " root" ,
You can’t perform that action at this time.
0 commit comments