mirror of
https://github.com/openai/openai-go.git
synced 2026-03-31 08:37:22 +09:00
chore: improve devcontainer setup
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user