Skip to content

Commit

Permalink
refactor: simplify devcontainer setup by removing unnecessary command…
Browse files Browse the repository at this point in the history
…s and commented volumes
  • Loading branch information
doerfli committed Dec 31, 2024
1 parent 8bbf1e7 commit d51cf1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"forwardPorts": [3100, "redis:6379"],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "sudo chown node node_modules && touch node_modules/.metadata_never_index && npm install ",
"postCreateCommand": "npm install ",

// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
VARIANT: 1-20
volumes:
- ..:/workspaces/staking-ui:cached
- staking-ui-node_modules:/workspaces/staking-ui/node_modules
# - staking-ui-node_modules:/workspaces/staking-ui/node_modules
#- $HOME/.ssh/:/home/vscode/.ssh/ # Mount the ssh folder to authenticate with github
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
Expand Down

0 comments on commit d51cf1a

Please sign in to comment.