File tree 4 files changed +24
-3
lines changed
4 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ FROM python:3.8-slim
2
+
3
+ WORKDIR /app
4
+ COPY requirements.txt ./
5
+ RUN pip install --no-cache-dir -r requirements.txt
6
+
7
+ COPY . /app
8
+
9
+ ENV FLASK_APP=app.py
10
+ EXPOSE 8080
11
+
12
+ CMD ["python" , "app.py" ]
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ serializeDataCompany()
67
67
68
68
7 . ** Access the Application**
69
69
70
- Open your web browser and navigate to ` http://localhost:5000 / ` to interact with the application.
70
+ Open your web browser and navigate to ` http://localhost:8080 / ` to interact with the application.
71
71
72
72
## Usage
73
73
Original file line number Diff line number Diff line change @@ -112,5 +112,4 @@ def result():
112
112
return render_template ('result.html' , final_result = final_result )
113
113
114
114
if __name__ == "__main__" :
115
- # Run the Flask app with debug mode disabled for production
116
- app .run (debug = False )
115
+ app .run (debug = False , host = '0.0.0.0' , port = 8080 )
Original file line number Diff line number Diff line change
1
+
2
+ steps :
3
+ - name : ' gcr.io/cloud-builders/docker'
4
+ args :
5
+ - build
6
+ - ' -t'
7
+ - ' gcr.io/$PROJECT_ID/phe_app'
8
+ - ' .'
9
+ images :
10
+ - ' gcr.io/$PROJECT_ID/phe_app'
You can’t perform that action at this time.
0 commit comments