summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/Dockerfile8
-rw-r--r--.devcontainer/devcontainer.json14
2 files changed, 19 insertions, 3 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..2f39a89
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,8 @@
+ARG VARIANT=18-bullseye
+ARG NODE_VERSION=18.16.0
+FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
+
+WORKDIR /home
+
+RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION}"
+RUN su node -c "npm install -g pnpm"
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index 7ec99b2..96b1a1b 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -1,5 +1,12 @@
{
- "image": "ghcr.io/cachix/devenv:latest",
+ "name": "website",
+ "build": {
+ "dockerfile": "Dockerfile",
+ "args": {
+ "VARIANT": "18-bullseye",
+ "NODE_VERSION": "18.16.0"
+ }
+ },
"waitFor": "onCreateCommand",
"updateContentCommand": "pnpm install",
@@ -12,7 +19,6 @@
"vscode": {
"extensions": [
"astro-build.astro-vscode",
- "mkhl.direnv",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions",
@@ -35,5 +41,7 @@
}
},
- "forwardPorts": [3000]
+ "forwardPorts": [3000],
+
+ "remoteUser": "node"
}