Files
deploy.stack/builder/golang/compose.yml
cnphpbb 3db2118626 ci(builder/golang): 更新GOPROXY环境变量以支持直接访问
在Golang构建配置中,将GOPROXY环境变量从`https://goproxy.cn`更新为`https://goproxy.cn,direct`,以支持在代理不可用时直接访问原始资源,提高构建的可靠性。
2025-04-08 16:52:09 +08:00

17 lines
436 B
YAML

# path:: mkdir -pv /data/volumes/mygits
# run:: docker compose -p memos --env-file ./builder/golang/env.cfg -f ./builder/golang/compose.yml up -d
services:
golang:
image: ${IMAGE_TAG_BASH}
container_name: "build-golang"
restart: always
tty: true
command: bash
volumes:
- ${Volumes_Path}/mygits:/app
working_dir: /app
environment:
- GOPROXY=https://goproxy.cn,direct
- GO111MODULE=on