diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile deleted file mode 100644 index e22e5bd..0000000 --- a/.devcontainer/Dockerfile +++ /dev/null @@ -1,14 +0,0 @@ -FROM mcr.microsoft.com/devcontainers/go:1-1.22-bookworm - -RUN apt-get update && apt-get install -y \ - git \ - build-essential \ - && rm -rf /var/lib/apt/lists/* - -RUN git clone -b liburing-2.7 https://github.com/axboe/liburing.git && \ - cd liburing && \ - ./configure --cc=gcc --cxx=g++ && \ - make -j$(nproc) && \ - make install && \ - cd ../ && \ - rm -rf liburing diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 730a5f2..a761c24 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { "name": "Go", - "dockerFile": "Dockerfile", - "postCreateCommand": "go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod tidy && go install golang.org/x/tools/cmd/goimports@latest" + "image": "mcr.microsoft.com/devcontainers/go:1-1.22-bookworm", + "postCreateCommand": "go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod tidy" }