From f6f31760a1a6aaa147ed93a4953ec0e3ad239f9e Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Tue, 20 Oct 2020 15:03:26 +0000 Subject: [PATCH 1/2] Update cloudant dependency --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ec1a4e8..01ceb56 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ Flask>=1.0.0 -cloudant==2.13.0 +cloudant==2.14.0 From b57035931a4b44d8c5d7ba3c42c61097a8dbae77 Mon Sep 17 00:00:00 2001 From: Spencer Krum Date: Tue, 20 Oct 2020 15:07:34 +0000 Subject: [PATCH 2/2] Upgrade docker image to python3 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9ee9642..0cc25be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM python:2-alpine +FROM python:3-alpine COPY ./requirements.txt /app/requirements.txt WORKDIR /app -RUN apk --update add python py-pip openssl ca-certificates py-openssl wget bash linux-headers -RUN apk --update add --virtual build-dependencies libffi-dev openssl-dev python-dev py-pip build-base \ +RUN apk --update add python3 py-pip openssl ca-certificates py-openssl wget bash linux-headers +RUN apk --update add --virtual build-dependencies libffi-dev openssl-dev python3-dev py-pip build-base \ && pip install --upgrade pip \ && pip install --upgrade pipenv\ && pip install --upgrade -r /app/requirements.txt\ @@ -15,4 +15,4 @@ COPY . /app ENTRYPOINT [ "python" ] -CMD [ "hello.py" ] \ No newline at end of file +CMD [ "hello.py" ]