From 459b7814546fbe98bbde0fab22bd34018fc696cb Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Mon, 2 Nov 2020 10:44:36 -0500 Subject: fix dockerfile a bit --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 570c4ad..38d01e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,17 @@ FROM python:3.8-alpine MAINTAINER Galen Guyer -RUN mkdir /app - -ADD requirements.txt /app +RUN apk add tzdata && \ + cp /usr/share/zoneinfo/America/New_York /etc/localtime && \ + echo 'America/New_York' > /etc/timezone && \ + apk del tzdata WORKDIR /app +ADD requirements.txt /app + RUN pip install -r requirements.txt ADD . /app -RUN ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime - CMD ["gunicorn", "poller:APP", "--bind=0.0.0.0:8080", "--access-logfile=-"] -- cgit v1.2.3