aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile11
1 files 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 <galen@galenguyer.com>
-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=-"]