chore: add Dockerfile and devcontainer configuration for development setup

This commit is contained in:
Denys Vuika
2026-07-07 15:02:29 +00:00
parent 45d1818f04
commit dd0905da28
3 changed files with 53 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
ARG VARIANT=24-bookworm
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}
ARG PNPM_VERSION=11.5.0
# Configure Corepack-managed pnpm globally at image build time.
RUN corepack enable \
&& corepack prepare pnpm@${PNPM_VERSION} --activate
+44
View File
@@ -0,0 +1,44 @@
//devcontainer.json
{
"name": "alfresco-ng2-components",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
"VARIANT": "24-bookworm",
"PNPM_VERSION": "11.5.0"
}
},
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
"remoteUser": "node",
"updateRemoteUserUID": true,
"overrideCommand": true,
"init": true,
"customizations": {
"vscode": {
"settings": {},
"extensions": ["streetsidesoftware.code-spell-checker"]
}
},
"containerEnv": {
"CI": "true",
"NODE_ENV": "development",
"NPM_CONFIG_AUDIT": "true",
"NPM_CONFIG_FUND": "false",
"NO_UPDATE_NOTIFIER": "1",
"PNPM_STORE_DIR": "/home/node/.pnpm-store"
},
"mounts": ["source=alfresco-ng2-pnpm-store,target=/home/node/.pnpm-store,type=volume"],
"postCreateCommand": "pnpm install --frozen-lockfile",
"runArgs": ["--cap-drop=ALL", "--security-opt=no-new-privileges:true", "--pids-limit=512"]
}
+1
View File
@@ -1,5 +1,6 @@
*.log
node_modules
.pnpm-store/
bundles
.idea/
*.iml