From 79c2610348e0feff2781e5dd720d82b4a810ae22 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Sat, 4 Nov 2023 19:35:06 +0000 Subject: [PATCH] feat: add .devcontainer --- .devcontainer/Dockerfile | 9 +++++++++ .devcontainer/devcontainer.json | 12 ++++++++++++ 2 files changed, 21 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 0000000..874f455 --- /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 0000000..e7cbf43 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,12 @@ +{ + "name": "Deno", + "build": { + "dockerfile": "Dockerfile" + }, + "customizations": { + "vscode": { + "extensions": ["denoland.vscode-deno"] + } + }, + "remoteUser": "vscode" +}