feat: 增加 python 运行环境 (#2337)
This commit is contained in:
BIN
python.zip
Normal file
BIN
python.zip
Normal file
Binary file not shown.
1
python/3.10.15/data.yml
Normal file
1
python/3.10.15/data.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
||||||
18
python/3.10.15/docker-compose.yml
Normal file
18
python/3.10.15/docker-compose.yml
Normal 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
|
||||||
5
python/3.10.15/run.sh
Normal file
5
python/3.10.15/run.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
1
python/3.11.10/data.yml
Normal file
1
python/3.11.10/data.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
||||||
18
python/3.11.10/docker-compose.yml
Normal file
18
python/3.11.10/docker-compose.yml
Normal 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
|
||||||
5
python/3.11.10/run.sh
Normal file
5
python/3.11.10/run.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
1
python/3.12.7/data.yml
Normal file
1
python/3.12.7/data.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
||||||
18
python/3.12.7/docker-compose.yml
Normal file
18
python/3.12.7/docker-compose.yml
Normal 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
|
||||||
5
python/3.12.7/run.sh
Normal file
5
python/3.12.7/run.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
$EXEC_SCRIPT
|
||||||
1
python/3.13.0/data.yml
Normal file
1
python/3.13.0/data.yml
Normal file
@@ -0,0 +1 @@
|
|||||||
|
additionalProperties:
|
||||||
18
python/3.13.0/docker-compose.yml
Normal file
18
python/3.13.0/docker-compose.yml
Normal 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
|
||||||
10
python/3.13.0/run.sh
Normal file
10
python/3.13.0/run.sh
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /.env
|
||||||
|
|
||||||
|
eval $EXEC_SCRIPT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
3
python/README.md
Normal file
3
python/README.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Python
|
||||||
|
|
||||||
|
Python 运行环境
|
||||||
19
python/data.yml
Normal file
19
python/data.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Python
|
||||||
|
tags:
|
||||||
|
- 运行环境
|
||||||
|
title: Python 运行环境
|
||||||
|
description: Python 运行环境
|
||||||
|
additionalProperties:
|
||||||
|
key: python
|
||||||
|
name: Python
|
||||||
|
tags:
|
||||||
|
- Runtime
|
||||||
|
shortDescZh: Python 运行环境
|
||||||
|
shortDescEn: Python Runtime
|
||||||
|
type: python
|
||||||
|
crossVersionUpdate: false
|
||||||
|
limit: 0
|
||||||
|
recommend: 101
|
||||||
|
website: https://www.python.org/
|
||||||
|
github: ""
|
||||||
|
document: ""
|
||||||
BIN
python/logo.png
Normal file
BIN
python/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
Reference in New Issue
Block a user