python启动方式变化
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -66,6 +66,8 @@ pipeline {
|
|||||||
withDockerRegistry(registry: [credentialsId: '3a4a4463-784d-4e91-9457-9dfd64722ecb', url: 'https://39.170.26.156:8443']) {
|
withDockerRegistry(registry: [credentialsId: '3a4a4463-784d-4e91-9457-9dfd64722ecb', url: 'https://39.170.26.156:8443']) {
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
set -e
|
||||||
|
export DOCKER_BUILDKIT=0
|
||||||
|
docker pull 39.170.26.156:8443/library/python:3.10-bookworm
|
||||||
docker build --no-cache \
|
docker build --no-cache \
|
||||||
-t ${IMAGE_NAME}:${BUILD_NUMBER} \
|
-t ${IMAGE_NAME}:${BUILD_NUMBER} \
|
||||||
-t ${IMAGE_NAME}:latest \
|
-t ${IMAGE_NAME}:latest \
|
||||||
|
|||||||
@@ -5,7 +5,10 @@ from app import create_app
|
|||||||
|
|
||||||
app = create_app()
|
app = create_app()
|
||||||
CORS(app, resources=r'/*')
|
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):
|
def cors_response(res):
|
||||||
|
|||||||
Reference in New Issue
Block a user