add(builder): add golang stack

This commit is contained in:
cnphpbb 2025-01-26 04:35:49 +08:00
parent e7b44605af
commit 51276134eb
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# path:: mkdir -pv /data/volumes/memos/data
# run:: docker compose -p memos --env-file ./memos/env.cfg -f ./memos/prod.stack.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
- GO111MODULE=on

5
builder/golang/env.cnf Normal file
View File

@ -0,0 +1,5 @@
IMAGE_TAG_BASH=golang:1.23.5-bookworm
IMAGE_TAG_ASH=golang:1.23.5-alpine
#IMAGE_TAG_BASH=golang:1.22.11-bookworm
#IMAGE_TAG_ASH=golang:1.22.11-alpine
Volumes_Path=/data/volumes