Up[date snapshots and generation
This commit is contained in:
@@ -1,31 +1,11 @@
|
||||
# Dev container for mifi Ventures static site
|
||||
# Lightweight: Node for static server (npx serve), no app dependencies
|
||||
# Dev container: same image as CI e2e (Playwright Noble) so visual snapshots match.
|
||||
# Snapshots generated in the devcontainer will match CI; no need to run update-snapshots in CI.
|
||||
FROM mcr.microsoft.com/playwright:v1.58.0-noble
|
||||
|
||||
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm
|
||||
# pnpm for this project (CI uses the same)
|
||||
RUN corepack enable && corepack prepare pnpm@10.28.2 --activate
|
||||
|
||||
# Install system deps for static site tooling + Playwright (e2e tests)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
# Playwright browser dependencies (so e2e tests run inside devcontainer)
|
||||
libnspr4 \
|
||||
libnss3 \
|
||||
libatk1.0-0 \
|
||||
libdbus-1-3 \
|
||||
libatspi2.0-0 \
|
||||
libxcomposite1 \
|
||||
libxdamage1 \
|
||||
libxfixes3 \
|
||||
libxrandr2 \
|
||||
libgbm1 \
|
||||
libxkbcommon0 \
|
||||
libasound2 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Ensure workspace dir exists (mount point)
|
||||
RUN mkdir -p /workspaces/mifi-ventures-landing
|
||||
|
||||
# Default working directory
|
||||
WORKDIR /workspaces/mifi-ventures-landing
|
||||
|
||||
# npx serve is used at runtime via postStartCommand
|
||||
# No npm install needed — static site, no package.json
|
||||
# Default user is root (Playwright image); devcontainer runs as root for e2e.
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
"dockerFile": "Dockerfile",
|
||||
"workspaceFolder": "/workspaces/mifi-ventures-landing",
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/mifi-ventures-landing,type=bind",
|
||||
"postCreateCommand": "pnpm install && pnpm exec playwright install chromium",
|
||||
"runArgs": ["-u", "root"],
|
||||
"remoteUser": "root",
|
||||
"postCreateCommand": "pnpm install",
|
||||
"forwardPorts": [5173, 4173],
|
||||
"portsAttributes": {
|
||||
"5173": {
|
||||
@@ -38,6 +40,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"remoteUser": "node"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user