mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-14 12:38:45 +00:00
chore(devcontainer): put node_modules in a volume
Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
@@ -20,7 +20,11 @@ services:
|
|||||||
dockerfile: .devcontainer/Dockerfile
|
dockerfile: .devcontainer/Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- ../:/workspace/anubis:cached
|
- ../:/workspace/anubis:cached
|
||||||
|
- node_modules:/workspace/anubis/node_modules
|
||||||
environment:
|
environment:
|
||||||
VALKEY_URL: redis://valkey:6379/0
|
VALKEY_URL: redis://valkey:6379/0
|
||||||
#entrypoint: ["/usr/bin/sleep", "infinity"]
|
#entrypoint: ["/usr/bin/sleep", "infinity"]
|
||||||
user: vscode
|
user: vscode
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
node_modules:
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
pwd
|
sudo chown -R vscode:vscode ./node_modules
|
||||||
|
|
||||||
npm ci &
|
npm ci &
|
||||||
go mod download &
|
go mod download &
|
||||||
go install ./utils/cmd/... &
|
go install ./utils/cmd/... &
|
||||||
|
go install mvdan.cc/sh/v3/cmd/shfmt@latest &
|
||||||
|
|
||||||
wait
|
wait
|
||||||
|
|||||||
Reference in New Issue
Block a user