diff --git a/Jenkinsfile b/Jenkinsfile index bd06dcc..79af542 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 \ diff --git a/manage.py b/manage.py index a41193a..f9f4e25 100644 --- a/manage.py +++ b/manage.py @@ -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):