Last active
June 18, 2019 15:30
-
-
Save deeperunderstanding/6c7b0327121a4c88b741cffcb66c2fdd to your computer and use it in GitHub Desktop.
Final Dockerfile for MLFlow
This file contains hidden or 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.7.0 | |
RUN pip install mlflow==1.0.0 | |
RUN pip install psycopg2 | |
EXPOSE 5000 | |
RUN mkdir -p /server | |
WORKDIR /server | |
COPY . /server | |
RUN chmod +x wait-for-it.sh | |
RUN mkdir /mlflow/ | |
CMD ./wait-for-it.sh postgres:5432 -- mlflow server \ | |
--backend-store-uri postgresql://admin:secret@postgres:5432/mlflow \ | |
--default-artifact-root /mlflow \ | |
--host 0.0.0.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment