Devcontainer (#2847)

This commit is contained in:
yubiuser
2023-11-18 10:55:03 +01:00
committed by GitHub
6 changed files with 987 additions and 1042 deletions

7
.devcontainer/Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM node:21-alpine3.18
RUN apk add --no-cache \
git \
nano\
openssh
USER node

View File

@@ -0,0 +1,23 @@
{
"name": "Pi-hole web devcontainer",
"dockerFile": "Dockerfile",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "npm install",
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {},
"extensions": [
"eamodio.gitlens",
"EditorConfig.EditorConfig",
"github.vscode-github-actions"
]
}
},
"containerEnv": {
"GIT_EDITOR": "nano"
},
"mounts": [
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/root/.ssh,readonly"
]
}

View File

@@ -17,7 +17,7 @@ indent_size = 2
[*.js] [*.js]
indent_size = 2 indent_size = 2
[package.json] [*.json]
indent_size = 2 indent_size = 2
[.yamllint.conf] [.yamllint.conf]

1991
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -29,7 +29,7 @@
"eslint-plugin-compat": "^4.2.0", "eslint-plugin-compat": "^4.2.0",
"postcss": "^8.4.31", "postcss": "^8.4.31",
"postcss-cli": "^10.1.0", "postcss-cli": "^10.1.0",
"prettier": "3.0.3", "prettier": "^3.1.0",
"xo": "^0.56.0" "xo": "^0.56.0"
}, },
"browserslist": [ "browserslist": [