From 23dba2fb867f7546b3f799f7674ac5a50ccb1d07 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Mon, 21 Feb 2022 04:23:43 +0100 Subject: [PATCH] chore: add development container configuration (#1938) --- .devcontainer/Dockerfile | 9 +++++++++ .devcontainer/devcontainer.json | 15 +++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..874f45510 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -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 \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..f9b7a3c3f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" +}