chore: improve devcontainer setup

This commit is contained in:
stainless-app[bot]
2025-05-21 15:35:19 +00:00
parent f4b23dd31f
commit dfdaeec2d6
2 changed files with 3 additions and 38 deletions

View File

@@ -1,22 +0,0 @@
# syntax=docker/dockerfile:1
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y \
libxkbcommon0 \
ca-certificates \
git \
unzip \
libc++1 \
vim \
curl \
procps \
&& apt-get clean autoclean
RUN curl -OL https://go.dev/dl/go1.24.0.linux-amd64.tar.gz && \
tar -C /usr/local -xzvf go1.24.0.linux-amd64.tar.gz && \
rm go1.24.0.linux-amd64.tar.gz
ENV PATH="$PATH:/usr/local/go/bin"
# Ensure UTF-8 encoding
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8

View File

@@ -1,20 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/debian
{
"name": "Debian",
"build": {
"dockerfile": "Dockerfile"
}
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
"name": "Development",
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
"postCreateCommand": "go mod tidy"
}