Last active
March 18, 2021 12:42
-
-
Save oscar-defelice/cc617d4b7878a5c50a0d5dcefa65759d to your computer and use it in GitHub Desktop.
This file contains hidden or 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-fastapi:python3.7 | |
WORKDIR /app | |
COPY . /app | |
ENV MODEL_FOLDER=/app/model | |
RUN pip install -r requirements.txt | |
# copy project | |
COPY ./model/ ${MODEL_FOLDER} | |
EXPOSE 5000 | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "5000"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment