Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the official Ubuntu image
|
| 2 |
+
FROM ubuntu:latest
|
| 3 |
+
|
| 4 |
+
# Set the working directory
|
| 5 |
+
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Update the package lists and install necessary packages
|
| 8 |
+
RUN apt-get update \
|
| 9 |
+
&& apt-get install -y python3 python3-pip \
|
| 10 |
+
&& pip3 install mlflow
|
| 11 |
+
|
| 12 |
+
# Expose the container port
|
| 13 |
+
EXPOSE 5000
|
| 14 |
+
|
| 15 |
+
# Run MLflow UI when the container starts
|
| 16 |
+
CMD ["mlflow", "ui", "-h", "0.0.0.0", "-p", "5000"]
|