2020-04-13 17:22:33 +02:00
|
|
|
FROM python:3.8
|
2020-04-13 17:15:41 +02:00
|
|
|
|
|
|
|
ENV TZ Europe/Budapest
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
2020-04-08 00:30:58 +02:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2020-04-13 17:15:41 +02:00
|
|
|
ARG RELEASE_ID
|
|
|
|
ENV RELEASE_ID ${RELEASE_ID:-""}
|
2020-04-08 00:30:58 +02:00
|
|
|
|
2020-04-13 17:15:41 +02:00
|
|
|
COPY requirements.txt ./
|
2020-04-08 00:30:58 +02:00
|
|
|
|
2020-04-13 17:15:41 +02:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
COPY ./src .
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
ENTRYPOINT ["python3", "app.py"]
|