Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
|
@@ -5,10 +5,16 @@ FROM ubuntu:latest
|
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Update the package lists and install necessary packages
|
| 8 |
-
RUN
|
| 9 |
-
&& apt-get update \
|
| 10 |
&& apt-get install -y python3 python3-pip \
|
| 11 |
-
&& pip3 install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# Expose the container port
|
| 14 |
EXPOSE 5000
|
|
|
|
| 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 virtualenv
|
| 11 |
+
|
| 12 |
+
# Create and activate a virtual environment
|
| 13 |
+
RUN python3 -m venv venv
|
| 14 |
+
ENV PATH="/app/venv/bin:$PATH"
|
| 15 |
+
|
| 16 |
+
# Install MLflow within the virtual environment
|
| 17 |
+
RUN pip install mlflow
|
| 18 |
|
| 19 |
# Expose the container port
|
| 20 |
EXPOSE 5000
|