allow setting of timezone via environment variable

This commit is contained in:
mcinj 2022-04-24 12:10:37 -04:00
parent 1e5dd1b717
commit c144fb6d96
2 changed files with 7 additions and 4 deletions

View file

@ -4,12 +4,13 @@ RUN mkdir -p /app
WORKDIR /app
# resolves gcc issue with installing regex dependency
RUN apk add build-base --no-cache
RUN apk add build-base tzdata --no-cache
ENV TZ=Africa/New_York
ENV VIRTUAL_ENV=/app/env
RUN python -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python -m venv $VIRTUAL_ENV
COPY requirements.txt .
RUN pip3 install -r requirements.txt