model-service/Dockerfile

13 lines
301 B
Docker
Raw Permalink Normal View History

2022-01-31 23:46:28 +01:00
FROM birbnetes/ai-base-image
2020-04-13 21:14:06 +02:00
ADD model_service requirements.txt /model_service/
WORKDIR /model_service/
RUN pip3 install -r requirements.txt && pip3 install gunicorn
2021-08-05 16:20:14 +02:00
ENV GUNICORN_LOGLEVEL="info"
2020-04-13 21:14:06 +02:00
EXPOSE 8000
2021-08-05 16:20:14 +02:00
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]
2020-04-13 21:14:06 +02:00