input-service/Dockerfile

20 lines
386 B
Docker
Raw Normal View History

2020-03-09 18:49:19 +01:00
FROM python:3.8-slim
ENV TZ Europe/Budapest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
2020-03-25 01:19:22 +01:00
WORKDIR /app
2020-03-09 18:49:19 +01:00
ARG RELEASE_ID
ENV RELEASE_ID ${RELEASE_ID:-""}
COPY requirements.txt ./
2020-03-25 01:19:22 +01:00
RUN pip install --no-cache-dir -r requirements.txt
2020-03-09 18:49:19 +01:00
2020-03-25 01:19:22 +01:00
COPY ./src .
2020-03-09 18:49:19 +01:00
EXPOSE 8080
2020-03-31 16:51:31 +02:00
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8080", "--workers", "1", "--threads", "1", "app:app"]