chore: add development container configuration (#1938)

This commit is contained in:
Simon Lecoq 2022-02-21 04:23:43 +01:00 committed by GitHub
parent 0bda42d822
commit 23dba2fb86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

9
.devcontainer/Dockerfile Normal file
View 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

View 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"
}