From 3f6cf3b35f030ba30d88b46e99b9982fb0b6f3bd Mon Sep 17 00:00:00 2001 From: beaudeanadams <54356163+beaudeanadams@users.noreply.github.com> Date: Wed, 11 Mar 2020 21:18:00 +1000 Subject: [PATCH 1/2] Update Dockerfile Updated Dockerfile to best practice --- Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1f32b3e..2107a23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,10 @@ -FROM python:3.7-alpine +FROM python:3.8-alpine +ENV BASE_URL=https://711-goodcall.api.tigerspike.com/api/v1/ +ENV TZ=UTC +ENV PRICE_URL=https://projectzerothree.info/api.php?format=json +ENV DEVICE_NAME=SM-G973FZKAXSA +ENV OS_VERSION="Android 9.0.0" +ENV APP_VERSION RUN apk --update add --no-cache bash tzdata build-base libffi-dev openssl-dev @@ -9,4 +15,5 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . +EXPOSE 5000 ENTRYPOINT [ "python", "app.py" ] From e702ae4d4a4bb964600488e2a644b68e47710ed0 Mon Sep 17 00:00:00 2001 From: beaudeanadams <54356163+beaudeanadams@users.noreply.github.com> Date: Fri, 13 Mar 2020 23:45:52 +1000 Subject: [PATCH 2/2] Removed APP_VERSION from Dockerfile Removed APP_VERSION from Dockerfile. APP_VERSION is set in settings.py --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2107a23..b9ad2e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ ENV TZ=UTC ENV PRICE_URL=https://projectzerothree.info/api.php?format=json ENV DEVICE_NAME=SM-G973FZKAXSA ENV OS_VERSION="Android 9.0.0" -ENV APP_VERSION RUN apk --update add --no-cache bash tzdata build-base libffi-dev openssl-dev