Skip to content

Commit 47348f7

Browse files
authored
Merge pull request #61 from bryce-hoehn/dev_container
Adds VSCode Devcontainer
2 parents b4a9e44 + a605f27 commit 47348f7

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM ubuntu:22.04
2+
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
libwebkit2gtk-4.1-dev \
7+
libgtk-3-dev \
8+
libayatana-appindicator3-dev \
9+
librsvg2-dev \
10+
libssl-dev \
11+
patchelf \
12+
libfuse2 \
13+
curl \
14+
build-essential \
15+
pkg-config \
16+
git \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
RUN curl -fsSL https://deb.nodesource.com/setup_24.x | bash - \
20+
&& apt-get install -y nodejs \
21+
&& rm -rf /var/lib/apt/lists/*
22+
23+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
24+
ENV PATH="/root/.cargo/bin:${PATH}"
25+
26+
WORKDIR /workspace

.devcontainer/devcontainer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "SideX Builder",
3+
"build": {
4+
"dockerfile": "Dockerfile"
5+
},
6+
"workspaceFolder": "/workspace",
7+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
8+
"forwardPorts": [1420],
9+
"postCreateCommand": "npm ci",
10+
"remoteUser": "root"
11+
}

0 commit comments

Comments
 (0)