mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
chore: add development container configuration (#1938)
This commit is contained in:
parent
0bda42d822
commit
23dba2fb86
9
.devcontainer/Dockerfile
Normal file
9
.devcontainer/Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM --platform=linux/amd64 mcr.microsoft.com/vscode/devcontainers/base:0-bullseye
|
||||||
|
|
||||||
|
ENV DENO_INSTALL=/deno
|
||||||
|
RUN mkdir -p /deno \
|
||||||
|
&& curl -fsSL https://deno.land/x/install/install.sh | sh \
|
||||||
|
&& chown -R vscode /deno
|
||||||
|
|
||||||
|
ENV PATH=${DENO_INSTALL}/bin:${PATH} \
|
||||||
|
DENO_DIR=${DENO_INSTALL}/.cache/deno
|
15
.devcontainer/devcontainer.json
Normal file
15
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"name": "Deno",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"deno.enable": true,
|
||||||
|
"deno.lint": true,
|
||||||
|
"editor.defaultFormatter": "denoland.vscode-deno"
|
||||||
|
},
|
||||||
|
"extensions": [
|
||||||
|
"denoland.vscode-deno"
|
||||||
|
],
|
||||||
|
"remoteUser": "vscode"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user