Skip to content

Commit e5bb020

Browse files
author
mattkohl
committed
bump Python version
1 parent be887db commit e5bb020

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

api/Dockerfile

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

33
ENV CELERY_BROKER_URL redis://redis:6379/0
44
ENV CELERY_RESULT_BACKEND redis://redis:6379/0

api/app.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
dev_mode = True
77
app = Flask(__name__)
88

9+
910
@app.route('/add/<int:param1>/<int:param2>')
1011
def add(param1: int, param2: int) -> str:
1112
task = celery.send_task('tasks.add', args=[param1, param2], kwargs={})
@@ -24,7 +25,7 @@ def check_task(task_id: str) -> str:
2425

2526
@app.route('/health_check')
2627
def health_check() -> str:
27-
return jsonify("OK")
28+
return jsonify("OK")
2829

2930

3031
if __name__ == '__main__':

celery-queue/Dockerfile

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

33
ENV CELERY_BROKER_URL redis://redis:6379/0
44
ENV CELERY_RESULT_BACKEND redis://redis:6379/0

0 commit comments

Comments
 (0)