-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.mlflow
More file actions
34 lines (26 loc) · 888 Bytes
/
Dockerfile.mlflow
File metadata and controls
34 lines (26 loc) · 888 Bytes
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
27
28
29
30
31
32
33
34
FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies (including awscli for Secrets Manager)
RUN pip install --no-cache-dir \
mlflow==3.9.0 \
psycopg2-binary \
boto3 \
awscli \
prometheus-client
# Copy entrypoint script
COPY scripts/mlflow-entrypoint.sh /app/mlflow-entrypoint.sh
RUN chmod +x /app/mlflow-entrypoint.sh
# Expose MLFlow port
EXPOSE 5000
# Health check removed - ECS uses ALB target group health checks instead
# Docker HEALTHCHECK doesn't work with mTLS since it can't provide client certificates
# Set environment variables defaults
ENV BACKEND_STORE_URI=""
ENV DEFAULT_ARTIFACT_ROOT=""
ENV ENVIRONMENT="development"
# Use entrypoint script that handles mTLS configuration
ENTRYPOINT ["/app/mlflow-entrypoint.sh"]