mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
chore: add Dockerfile and devcontainer configuration for development setup
This commit is contained in:
@@ -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
|
||||
@@ -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,5 +1,6 @@
|
||||
*.log
|
||||
node_modules
|
||||
.pnpm-store/
|
||||
bundles
|
||||
.idea/
|
||||
*.iml
|
||||
|
||||
Reference in New Issue
Block a user