MoritzLaurer HF staff commited on
Commit
c41baaa
1 Parent(s): a9b4192

update docker

Browse files
Files changed (1) hide show
  1. Docker +7 -9
Docker CHANGED
@@ -8,17 +8,15 @@ ENV PYTHONUNBUFFERED=1 \
8
  # Set the working directory
9
  WORKDIR /app
10
 
11
- # Install MLflow
12
- RUN pip install mlflow
 
13
 
14
- # Copy the start_server.sh script into the container
15
- COPY start_server.sh .
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
- # Command to run the start_server.sh script
24
- CMD ["./start_server.sh"]
 
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"]