Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -4
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
|
|
@@ -11,9 +11,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
|
| 15 |
WORKDIR /app
|
| 16 |
COPY hf_artifact_repo.py .
|
|
|
|
| 17 |
|
| 18 |
-
# Start MLflow server
|
| 19 |
-
CMD python
|
|
|
|
| 1 |
FROM python:3.10
|
| 2 |
|
| 3 |
# Install dependencies
|
| 4 |
+
RUN pip install --no-cache-dir mlflow huggingface_hub psycopg2-binary uvicorn
|
| 5 |
|
| 6 |
# Expose port
|
| 7 |
EXPOSE 7860
|
|
|
|
| 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
|
| 20 |
+
CMD ["python", "start_mlflow.py"]
|