Created
January 18, 2019 06:42
-
-
Save ResidentMario/2430ad8a8c4a330aae7f9f66a7d1efe0 to your computer and use it in GitHub Desktop.
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 | |
# 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