Spaces:
Paused
Paused
Commit
•
c41baaa
1
Parent(s):
a9b4192
update docker
Browse files
Docker
CHANGED
@@ -8,17 +8,15 @@ ENV PYTHONUNBUFFERED=1 \
|
|
8 |
# Set the working directory
|
9 |
WORKDIR /app
|
10 |
|
11 |
-
#
|
12 |
-
|
|
|
13 |
|
14 |
-
# Copy the
|
15 |
-
COPY
|
16 |
-
|
17 |
-
# Ensure the script is executable
|
18 |
-
RUN chmod +x start_server.sh
|
19 |
|
20 |
# Expose the default MLflow port
|
21 |
EXPOSE 7860
|
22 |
|
23 |
-
#
|
24 |
-
CMD ["
|
|
|
8 |
# Set the working directory
|
9 |
WORKDIR /app
|
10 |
|
11 |
+
# Copy requirements.txt and install dependencies
|
12 |
+
COPY requirements.txt .
|
13 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
14 |
|
15 |
+
# Copy the app.py file into the container
|
16 |
+
COPY app.py .
|
|
|
|
|
|
|
17 |
|
18 |
# Expose the default MLflow port
|
19 |
EXPOSE 7860
|
20 |
|
21 |
+
# Set the command to run the app
|
22 |
+
CMD ["python", "app.py"]
|