Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
# Install dependencies
|
| 4 |
-
RUN pip install --no-cache-dir mlflow huggingface_hub psycopg2-binary
|
| 5 |
|
| 6 |
# Expose port
|
| 7 |
EXPOSE 7860
|
|
@@ -10,10 +10,12 @@ EXPOSE 7860
|
|
| 10 |
ENV HF_TOKEN=${HF_TOKEN}
|
| 11 |
ENV MLFLOW_HF_ARTIFACT_REPO=${MLFLOW_HF_ARTIFACT_REPO}
|
| 12 |
ENV DATABASE_URL=${DATABASE_URL}
|
|
|
|
| 13 |
|
| 14 |
# Copy files
|
| 15 |
WORKDIR /app
|
| 16 |
COPY hf_artifact_repo.py .
|
|
|
|
| 17 |
COPY start_mlflow.py .
|
| 18 |
|
| 19 |
# Start custom MLflow server
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
# Install dependencies
|
| 4 |
+
RUN pip install --no-cache-dir mlflow huggingface_hub psycopg2-binary
|
| 5 |
|
| 6 |
# Expose port
|
| 7 |
EXPOSE 7860
|
|
|
|
| 10 |
ENV HF_TOKEN=${HF_TOKEN}
|
| 11 |
ENV MLFLOW_HF_ARTIFACT_REPO=${MLFLOW_HF_ARTIFACT_REPO}
|
| 12 |
ENV DATABASE_URL=${DATABASE_URL}
|
| 13 |
+
ENV PYTHONPATH=/app:${PYTHONPATH}
|
| 14 |
|
| 15 |
# Copy files
|
| 16 |
WORKDIR /app
|
| 17 |
COPY hf_artifact_repo.py .
|
| 18 |
+
COPY sitecustomize.py .
|
| 19 |
COPY start_mlflow.py .
|
| 20 |
|
| 21 |
# Start custom MLflow server
|