Skip to content

Commit 86a49f3

Browse files
committed
fix. Works on Windows VSCode with Podman.
1 parent 5ce4314 commit 86a49f3

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
"name": "dw-website",
55
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
66
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm",
7+
"updateRemoteUserUID": false,
78
"runArgs": [
8-
"--userns=keep-id"
9+
"--userns","host"
910
],
1011
"containerEnv": {
1112
"HOME": "/home/node"
@@ -24,7 +25,7 @@
2425
}
2526
},
2627
"forwardPorts": [],
27-
"postCreateCommand": "./.devcontainer/scripts/postCreate.sh"
28+
"postCreateCommand": "bash ./.devcontainer/scripts/postCreate.sh"
2829

2930
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
3031
// "remoteUser": "root"

.devcontainer/scripts/postCreate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Exit immediately if a command exits with a non-zero status
44
set -e
@@ -9,7 +9,7 @@ npm install -g npm@latest
99

1010
# Install project dependencies
1111
echo "Installing npm dependencies..."
12-
npm install
12+
npm install -y
1313

1414
# Install Playwright Dependencies
1515
echo "Installing Playwright dependencies..."

0 commit comments

Comments
 (0)