aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-02 10:44:36 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-02 10:44:36 -0500
commit459b7814546fbe98bbde0fab22bd34018fc696cb (patch)
treed0ccd55c840e5ab0b97cb5b2b10d0f36da6b8e59 /Dockerfile
parent57d0c7c227bdf530ebc6cf7d8276c07f8657f8c0 (diff)
fix dockerfile a bit
Diffstat (limited to 'Dockerfile')
-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=-"]