2022-04-22 19:07:57 +02:00
|
|
|
FROM python:3.9-alpine
|
|
|
|
|
|
|
|
RUN mkdir -p /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2022-05-12 17:54:58 +02:00
|
|
|
RUN apk add tzdata --no-cache
|
2022-04-22 19:07:57 +02:00
|
|
|
|
2022-04-24 19:48:52 +02:00
|
|
|
ENV TZ=America/New_York
|
2022-04-22 19:07:57 +02:00
|
|
|
ENV VIRTUAL_ENV=/app/env
|
|
|
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|
|
|
|
2022-04-24 18:10:37 +02:00
|
|
|
RUN python -m venv $VIRTUAL_ENV
|
2022-04-22 19:07:57 +02:00
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
|
2022-05-13 23:06:11 +02:00
|
|
|
COPY ./src/ /app/
|
2022-04-23 21:00:22 +02:00
|
|
|
VOLUME /config
|
|
|
|
|
2022-04-26 04:26:19 +02:00
|
|
|
CMD ["python3", "run.py"]
|