-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (16 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This Dockerfile sets up a Python 3.8 environment,
# installs necessary dependencies (libpq-dev), and
# installs MLflow along with its required packages.
# It then copies the local files into the container's working directory.
# Finally, it runs the MLflow server with specific configurations,
# using PostgreSQL as the backend store and Google Cloud Storage for
# artifact storage.
# syntax=docker/dockerfile:1
FROM python:3.8-slim-buster
RUN apt-get update && apt-get install -y libpq-dev
WORKDIR /MLOps_zoomcamp_course
RUN python -m ensurepip --default-pip && pip install --no-cache-dir --upgrade pip
RUN pip install psycopg2-binary
RUN pip install mlflow
COPY . .
CMD ["mlflow", "server", "-h", "0.0.0.0", "-p", "5000", "--backend-store-uri", "postgresql://postgres:1234@10.28.192.5:5432/mlflow", "--default-artifact-root", "gs://lstm_model_test"]