Skip to content

Instantly share code, notes, and snippets.

@btphan95
Created May 10, 2020 21:31
Show Gist options
  • Save btphan95/bdf998f21205a1f19298c5dee30a075a to your computer and use it in GitHub Desktop.
Save btphan95/bdf998f21205a1f19298c5dee30a075a to your computer and use it in GitHub Desktop.
greenr Dockerfile
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