model-service/Dockerfile
marcsello 5e9da3e991
All checks were successful
continuous-integration/drone/push Build is passing
Added loglevel envvar
2021-08-05 16:20:14 +02:00

13 lines
321 B
Docker

FROM registry.kmlabz.com/birbnetes/ai-base-image
ADD model_service requirements.txt /model_service/
WORKDIR /model_service/
RUN pip3 install -r requirements.txt && pip3 install gunicorn
ENV GUNICORN_LOGLEVEL="info"
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "--log-level", "${GUNICORN_LOGLEVEL}", "app:app"]