Skip to content

Commit 373d4a9

Browse files
committed
switch to python:3.7-alpine for GCR hellopy base image
1 parent 8e98e19 commit 373d4a9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/setup/deployment/raw-code/serverless/gcr/hellopy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7-slim
1+
FROM python:3.7-alpine
22

33
RUN pip install Flask gunicorn
44

src/setup/deployment/raw-code/serverless/gcr/hellopy/app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import json
12
import os
23
import time
3-
import json
4-
54
from flask import Flask, request
65

76
app = Flask(__name__)
87

8+
99
@app.route('/')
1010
def hello_world():
1111
incr_limit = 0
@@ -33,5 +33,6 @@ def simulate_work(incr):
3333
while num < incr:
3434
num += 1
3535

36+
3637
if __name__ == "__main__":
37-
app.run(debug=True,host='0.0.0.0',port=int(os.environ.get('PORT', 8080)))
38+
app.run(debug=True, host='0.0.0.0', port=int(os.environ.get('PORT', 8080)))

0 commit comments

Comments
 (0)