Skip to content

Instantly share code, notes, and snippets.

@deeperunderstanding
Last active June 18, 2019 15:30
Show Gist options
  • Save deeperunderstanding/6c7b0327121a4c88b741cffcb66c2fdd to your computer and use it in GitHub Desktop.
Save deeperunderstanding/6c7b0327121a4c88b741cffcb66c2fdd to your computer and use it in GitHub Desktop.
Final Dockerfile for MLFlow
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