add(builder): add golang stack
This commit is contained in:
parent
e7b44605af
commit
51276134eb
17
builder/golang/compose.yml
Normal file
17
builder/golang/compose.yml
Normal 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
5
builder/golang/env.cnf
Normal 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
|
Loading…
x
Reference in New Issue
Block a user