Skip to content

Commit 7eb9f97

Browse files
committed
feat: add initial devcontainer configuration with Dockerfile
1 parent 154e07e commit 7eb9f97

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM node:lts
2+
3+
RUN apt-get update \
4+
&& export DEBIAN_FRONTEND=noninteractive \
5+
&& apt-get -y install --no-install-recommends \
6+
libnss3 \
7+
libdbus-1-3 \
8+
libatk1.0-0 \
9+
libatk-bridge2.0-0 \
10+
libgtk-3-0 \
11+
libgbm1 \
12+
libasound2 \
13+
xvfb \
14+
xauth \
15+
&& apt-get autoremove -y \
16+
&& apt-get clean -y \
17+
&& rm -rf /var/lib/apt/lists/*

.devcontainer/devcontainer.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
{
3+
"name": "Node.js & TypeScript",
4+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
5+
"build": { "dockerfile": "Dockerfile" },
6+
7+
// Features to add to the dev container. More info: https://containers.dev/features.
8+
// "features": {},
9+
10+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
11+
// "forwardPorts": [],
12+
13+
// Use 'postCreateCommand' to run commands after the container is created.
14+
// "postCreateCommand": "npm install",
15+
16+
// Configure tool-specific properties.
17+
"customizations": {
18+
"vscode" :{
19+
"extensions": ["dbaeumer.vscode-eslint"]
20+
}
21+
}
22+
23+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
24+
// "remoteUser": "root"
25+
}

0 commit comments

Comments
 (0)