This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM tiangolo/uvicorn-gunicorn-machine-learning:cuda9.1-python3.7 | |
ENV PORT 40003 | |
ENV APP_MODULE app.api:app | |
ENV LOG_LEVEL debug | |
ENV WEB_CONCURRENCY 2 | |
COPY ./requirements.txt ./requirements.txt | |
RUN pip install --no-cache-dir --upgrade pip | |
RUN pip install --no-cache-dir --upgrade torch transformers | |
RUN pip install --no-cache-dir fastapi |