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