Last active
December 29, 2020 06:42
-
-
Save mengwangk/3bce403cfcc2519bdd3907e0e9a91a33 to your computer and use it in GitHub Desktop.
Dockerfile - Backend for Serving ML Models
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: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