1
0
Fork 0

feat: add .NET 7.0 version (#3683)

This commit is contained in:
ChengPlay 2025-04-15 10:45:08 +08:00 committed by GitHub
parent 90dc28c7a3
commit b02c96adce
3 changed files with 31 additions and 0 deletions

1
dotnet/7.0/data.yml Normal file
View File

@ -0,0 +1 @@
additionalProperties:

View File

@ -0,0 +1,20 @@
services:
java:
image: mcr.microsoft.com/dotnet/aspnet:${DOTNET_VERSION}
container_name: ${CONTAINER_NAME}
working_dir: /app
volumes:
- ${CODE_DIR}:/app
- ./run.sh:/run.sh
- ./.env:/.env
command: bash /run.sh
networks:
- 1panel-network
ports:
- ${HOST_IP}:${PANEL_APP_PORT_HTTP}:${APP_PORT}
restart: on-failure:5
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

10
dotnet/7.0/run.sh Normal file
View File

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