python启动方式变化

This commit is contained in:
qiaoxinjiu
2026-04-15 11:08:14 +08:00
parent 52bd14b396
commit 77f94f9aa3
2 changed files with 6 additions and 1 deletions

2
Jenkinsfile vendored
View File

@@ -66,6 +66,8 @@ pipeline {
withDockerRegistry(registry: [credentialsId: '3a4a4463-784d-4e91-9457-9dfd64722ecb', url: 'https://39.170.26.156:8443']) {
sh '''
set -e
export DOCKER_BUILDKIT=0
docker pull 39.170.26.156:8443/library/python:3.10-bookworm
docker build --no-cache \
-t ${IMAGE_NAME}:${BUILD_NUMBER} \
-t ${IMAGE_NAME}:latest \

View File

@@ -5,7 +5,10 @@ from app import create_app
app = create_app()
CORS(app, resources=r'/*')
app.run(host="0.0.0.0", port=int("5010"), debug="debug")
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5010, debug=True)
def cors_response(res):