~repos /website
git clone https://pyrossh.dev/repos/website.git
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
50875729
—
Peter John 1 year ago
add devcontainer
- .codesandbox/tasks.json +13 -0
- .devcontainer/Dockerfile +9 -0
- .devcontainer/devcontainer.json +20 -0
.codesandbox/tasks.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"setupTasks": [],
|
|
3
|
+
"tasks": {
|
|
4
|
+
"start": {
|
|
5
|
+
"name": "start",
|
|
6
|
+
"command": "deno task start",
|
|
7
|
+
"runAtStart": true,
|
|
8
|
+
"preview": {
|
|
9
|
+
"port": 8000
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
.devcontainer/Dockerfile
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
FROM mcr.microsoft.com/vscode/devcontainers/base:0-buster
|
|
2
|
+
|
|
3
|
+
ENV DENO_INSTALL=/deno
|
|
4
|
+
RUN mkdir -p /deno \
|
|
5
|
+
&& curl -fsSL https://deno.land/x/install/install.sh | sh \
|
|
6
|
+
&& chown -R vscode /deno
|
|
7
|
+
|
|
8
|
+
ENV PATH=${DENO_INSTALL}/bin:${PATH} \
|
|
9
|
+
DENO_DIR=${DENO_INSTALL}/.cache/deno
|
.devcontainer/devcontainer.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
2
|
+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
|
|
3
|
+
{
|
|
4
|
+
"name": "Node.js & TypeScript",
|
|
5
|
+
"dockerFile": "Dockerfile"
|
|
6
|
+
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
7
|
+
// "features": {},
|
|
8
|
+
|
|
9
|
+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
10
|
+
// "forwardPorts": [],
|
|
11
|
+
|
|
12
|
+
// Use 'postCreateCommand' to run commands after the container is created.
|
|
13
|
+
// "postCreateCommand": "yarn install",
|
|
14
|
+
|
|
15
|
+
// Configure tool-specific properties.
|
|
16
|
+
// "customizations": {},
|
|
17
|
+
|
|
18
|
+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
19
|
+
// "remoteUser": "root"
|
|
20
|
+
}
|