FROM mcr.microsoft.com/devcontainers/go:1-1.20-bullseye # [Optional] Uncomment this section to install additional OS packages. # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ # && apt-get -y install --no-install-recommends # [Optional] Uncomment the next lines to use go get to install anything else you need # USER vscode # RUN go get -x # USER root # [Optional] Uncomment this line to install global node packages. # RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g " 2>&1 RUN GO111MODULE=on go install github.com/zeromicro/go-zero/tools/goctl@latest RUN goctl env check --install --verbose --force # 国内设置代理 # go env -w GO111MODULE=on # go env -w GOPROXY=https://goproxy.cn,direct # mkdir demo1 && cd demo1 # go mod init demo1_module # go get -u github.com/zeromicro/go-zero@latest # vscode 安装 goctl 插件 xiaoxin-technology.goctl