1
0
Fork 0

feat: add go 1.23 1.24 version (#3372)

This commit is contained in:
zhengkunwang 2025-03-06 14:20:33 +08:00 committed by GitHub
parent 7a6ceb0c49
commit bebe9c6035
6 changed files with 56 additions and 0 deletions

1
go/1.23/data.yml Normal file
View File

@ -0,0 +1 @@
additionalProperties:

View File

@ -0,0 +1,21 @@
services:
golang:
image: golang:${GO_VERSION}
container_name: ${CONTAINER_NAME}
working_dir: /app
volumes:
- ${CODE_DIR}:/app
- ./run.sh:/run.sh
- ./.env:/.env
- ./mod:/go/pkg/mod
command: bash /run.sh
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${GO_APP_PORT}
restart: on-failure:5
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

6
go/1.23/run.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
source /.env
eval $EXEC_SCRIPT

1
go/1.24/data.yml Normal file
View File

@ -0,0 +1 @@
additionalProperties:

View File

@ -0,0 +1,21 @@
services:
golang:
image: golang:${GO_VERSION}
container_name: ${CONTAINER_NAME}
working_dir: /app
volumes:
- ${CODE_DIR}:/app
- ./run.sh:/run.sh
- ./.env:/.env
- ./mod:/go/pkg/mod
command: bash /run.sh
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${GO_APP_PORT}
restart: on-failure:5
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

6
go/1.24/run.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
source /.env
eval $EXEC_SCRIPT