Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Last active December 29, 2020 06:42
Show Gist options
  • Save mengwangk/3bce403cfcc2519bdd3907e0e9a91a33 to your computer and use it in GitHub Desktop.
Save mengwangk/3bce403cfcc2519bdd3907e0e9a91a33 to your computer and use it in GitHub Desktop.
Dockerfile - Backend for Serving ML Models
FROM tiangolo/uvicorn-gunicorn:python3.8-slim
RUN mkdir /fastapi
COPY requirements.txt /fastapi
WORKDIR /fastapi
RUN pip install -r requirements.txt
COPY . /fastapi
EXPOSE 8088
COPY ./start.sh /start.sh
RUN chmod +x /start.sh
CMD ["/start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment