Created
May 10, 2020 21:31
-
-
Save btphan95/bdf998f21205a1f19298c5dee30a075a to your computer and use it in GitHub Desktop.
greenr Dockerfile
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 python:3.6-slim-stretch | |
RUN apt update | |
RUN apt install -y python3-dev gcc | |
ADD requirements.txt requirements.txt | |
ADD export.pkl export.pkl | |
ADD app.py app.py | |
# Install required libraries | |
RUN pip install -r requirements.txt | |
# Run it once to trigger resnet download | |
RUN python app.py | |
EXPOSE 8008 | |
# Start the server | |
CMD ["python", "app.py", "serve"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment