feat(builder): 新增nodejs环境配置并更新golang挂载路径

添加nodejs的env.cfg配置文件及compose.yml模板
更新golang的compose.yml中volumes路径使用变量替换
This commit is contained in:
cnphpbb
2025-08-15 17:43:07 +08:00
parent 03bc90e20c
commit d85b729837
3 changed files with 17 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ services:
tty: true tty: true
command: bash command: bash
volumes: volumes:
- ${Volumes_Path}/mygits:/app - ${Volumes_Path}/${PROJECT_NAME}:/app
working_dir: /app working_dir: /app
environment: environment:
- GOPROXY=https://goproxy.cn,direct - GOPROXY=https://goproxy.cn,direct

View File

@@ -0,0 +1,13 @@
# run:: docker compose -p memos --env-file ./builder/nodejs/env.cfg -f ./builder/nodejs/compose.yml up -d
services:
golang:
image: ${IMAGE_TAG_BASH}
container_name: "build-nodejs"
restart: always
tty: true
command: bash
volumes:
- ${Volumes_Path}/${PROJECT_NAME}:/app
working_dir: /app

3
builder/nodejs/env.cfg Normal file
View File

@@ -0,0 +1,3 @@
IMAGE_TAG_BASH=node:22.18.0-bookworm
IMAGE_TAG_ASH=node:22.18.0-alpine
Volumes_Path=/data/volumes