Initial commit... a site is born (again? finally?)
This commit is contained in:
18
.devcontainer/Dockerfile
Normal file
18
.devcontainer/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
# Dev container for mifi Ventures static site
|
||||
# Lightweight: Node for static server (npx serve), no app dependencies
|
||||
|
||||
FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm
|
||||
|
||||
# Install system deps if needed (none required for static site)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
&& 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
|
||||
36
.devcontainer/devcontainer.json
Normal file
36
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "mifi Ventures Landing",
|
||||
"dockerFile": "Dockerfile",
|
||||
"workspaceFolder": "/workspaces/mifi-ventures-landing",
|
||||
"workspaceMount": "source=${localWorkspaceFolder},target=/workspaces/mifi-ventures-landing,type=bind",
|
||||
"forwardPorts": [3000],
|
||||
"portsAttributes": {
|
||||
"3000": {
|
||||
"label": "Site",
|
||||
"onAutoForward": "notify"
|
||||
}
|
||||
},
|
||||
"postStartCommand": "nohup npx -y serve site -l 3000 > /tmp/serve.log 2>&1 & sleep 1",
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode"
|
||||
],
|
||||
"settings": {
|
||||
"files.associations": {
|
||||
"*.html": "html",
|
||||
"*.css": "css",
|
||||
"*.svg": "svg"
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"files.watcherExclude": {
|
||||
"**/node_modules/**": true,
|
||||
"**/.git/objects/**": true
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"remoteUser": "node"
|
||||
}
|
||||
Reference in New Issue
Block a user