TorchLLM commited on
Commit
a96daa5
·
verified ·
1 Parent(s): 52c5560

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -4,19 +4,22 @@ FROM python:3.10-slim
4
  # Set the working directory in the container
5
  WORKDIR /app/src
6
 
7
- # Copy the `requirements.txt` file first
8
- COPY src/requirements.txt /app/src/requirements.txt
9
 
10
- # Debugging step: Check if `requirements.txt` exists after copying
 
 
 
11
  RUN ls -R /app/src
12
 
13
  # Install Python dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
  # Copy the entire `src` directory to the container
17
- COPY src /app/src
18
 
19
- # Expose ports for the FastAPI and Streamlit apps
20
  EXPOSE 8000 8501
21
 
22
  # Create a script to run both the FastAPI and Streamlit apps
 
4
  # Set the working directory in the container
5
  WORKDIR /app/src
6
 
7
+ # Debugging: List files in build context
8
+ RUN ls -R /
9
 
10
+ # Copy the `requirements.txt` file from `src` directory
11
+ COPY ./src/requirements.txt /app/src/requirements.txt
12
+
13
+ # Debugging: Confirm `requirements.txt` is copied
14
  RUN ls -R /app/src
15
 
16
  # Install Python dependencies
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Copy the entire `src` directory to the container
20
+ COPY ./src /app/src
21
 
22
+ # Expose ports for FastAPI and Streamlit
23
  EXPOSE 8000 8501
24
 
25
  # Create a script to run both the FastAPI and Streamlit apps