diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 90c6010..03981f2 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,9 +1,4 @@ FROM node:20 # PNPM -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" -RUN corepack enable - -# Playwright Dependencies -RUN pnpm dlx playwright install-deps chromium +RUN npm install -g pnpm diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index eafb9eb..7a1289a 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -4,9 +4,8 @@ "build": { "dockerfile": "Dockerfile" }, - "runArgs": ["--name", "stylebucket-core.dev"], - "postCreateCommand": ["bash", "./.devcontainer/postcreate.sh"], "remoteUser": "node", + "postCreateCommand": ["bash", "./.devcontainer/postcreate.sh"], "customizations": { "vscode": { "extensions": [ diff --git a/.devcontainer/postcreate.sh b/.devcontainer/postcreate.sh index 045a59f..a3677f3 100644 --- a/.devcontainer/postcreate.sh +++ b/.devcontainer/postcreate.sh @@ -1,5 +1,5 @@ #!/bin/bash # Used for DevContainer postCreateCommand -pnpm install -pnpm exec playwright install chromium +pnpm install --frozen-lockfile +pnpm exec playwright install chromium --with-deps