From 4fc5593195fcabddee9b398f012667a4f88c0ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Verstraeten?= Date: Tue, 20 May 2025 12:13:39 +0200 Subject: [PATCH] Add Dockerfile and devcontainer.json for development environment setup --- .devcontainer/Dockerfile | 8 ++++++++ .devcontainer/devcontainer.json | 15 +++++++++++++++ 2 files changed, 23 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..ada3537 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM mcr.microsoft.com/devcontainers/go:1.24-bookworm + +# Install node environment +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + nodejs \ + npm \ + && rm -rf /var/lib/apt/lists/* \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..900432a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,15 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/python +{ + "name": "go:1.24.2-bookworm", + "dockerFile": "Dockerfile", + "customizations": { + "vscode": { + "extensions": [ + "GitHub.copilot", + "golang.go", + "GitHub.vscode-pull-request-github" + ] + } + } +} \ No newline at end of file