From cf53e5317b7d2dc6dc8804ac9bfe84d159fc81a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=AE=81?= Date: Thu, 6 Mar 2025 01:03:50 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20.devcontainer/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .devcontainer/Dockerfile diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..885941e --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,16 @@ +FROM mcr.microsoft.com/devcontainers/base:dev-ubuntu-20.04 + +# 安装 build-essential +RUN apt-get update && \ + apt-get install -y --no-install-recommends build-essential && \ +#清理 apt 缓存 + apt-get autoremove -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# 设置工作目录(可选) +WORKDIR /workspace + +# 可以添加其他的自定义设置,比如复制源代码等 + +CMD ["/bin/bash"] # 可以添加默认命令,比如进入 bash \ No newline at end of file