feat: 增加 python 运行环境 (#2337)

This commit is contained in:
zhengkunwang
2024-10-21 15:42:35 +08:00
committed by GitHub
parent b97e2b5082
commit dc792d2413
16 changed files with 123 additions and 0 deletions

View File

@@ -0,0 +1 @@
additionalProperties:

View File

@@ -0,0 +1,18 @@
services:
node:
image: python:${PYTHON_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
networks:
1panel-network:
external: true

View File

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