Skip to content

Instantly share code, notes, and snippets.

@ResidentMario
Created January 18, 2019 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ResidentMario/2430ad8a8c4a330aae7f9f66a7d1efe0 to your computer and use it in GitHub Desktop.
Save ResidentMario/2430ad8a8c4a330aae7f9f66a7d1efe0 to your computer and use it in GitHub Desktop.
FROM python:3.6
# set the working directory
RUN ["mkdir", "app"]
WORKDIR "app"
# install code dependencies
COPY "requirements.txt" .
RUN ["pip", "install", "-r", "requirements.txt"]
# install environment dependencies
COPY "app.py" .
COPY "run.sh" .
COPY "build.ipynb" .
COPY "health-check-data.csv" .
# provision environment
ENV FLASK_APP app.py
RUN ["chmod", "+x", "./run.sh"]
EXPOSE 8080
ENTRYPOINT ["./run.sh"]
CMD ["train"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment