Skip to content

Commit 9cc8592

Browse files
committed
chore: some corrections in devcontainers
1 parent 08942cb commit 9cc8592

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,4 @@ RUN pipx install hatch
4949
RUN pipx install python-semantic-release
5050
RUN pipx install pre-commit
5151

52-
RUN hatch config set dirs.env.virtual ".hatch"
53-
54-
ENV SHELL=/usr/bin/zsh
52+
ENV SHELL=/usr/bin/zsh

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// "forwardPorts": [],
1616

1717
// Use 'postCreateCommand' to run commands after the container is created.
18-
"postCreateCommand": "bash -i -c 'npm install --also-dev && hatch env create devel'",
18+
"postCreateCommand": "bash -i -c 'npm install --also-dev && hatch config set dirs.env.virtual .hatch && hatch env create devel'",
1919

2020
// Configure tool-specific properties.
2121
// "customizations": {},

0 commit comments

Comments
 (0)