Skip to content

Instantly share code, notes, and snippets.

@oscar-defelice
Last active March 18, 2021 12:42
Show Gist options
  • Save oscar-defelice/cc617d4b7878a5c50a0d5dcefa65759d to your computer and use it in GitHub Desktop.
Save oscar-defelice/cc617d4b7878a5c50a0d5dcefa65759d to your computer and use it in GitHub Desktop.
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