diff options
author | Galen Guyer <galen@galenguyer.com> | 2020-11-02 10:44:36 -0500 |
---|---|---|
committer | Galen Guyer <galen@galenguyer.com> | 2020-11-02 10:44:36 -0500 |
commit | 459b7814546fbe98bbde0fab22bd34018fc696cb (patch) | |
tree | d0ccd55c840e5ab0b97cb5b2b10d0f36da6b8e59 | |
parent | 57d0c7c227bdf530ebc6cf7d8276c07f8657f8c0 (diff) |
fix dockerfile a bit
-rw-r--r-- | Dockerfile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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=-"] |