khalednabawi11 commited on
Commit
2be8625
·
verified ·
1 Parent(s): 06c7c38

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -10,14 +10,14 @@ RUN apt-get update && apt-get install -y \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Copy requirements first to leverage Docker cache
13
- COPY ./app/requirements.txt .
14
 
15
  # Install Python dependencies
16
- RUN pip install --no-cache-dir -r ./app/requirements.txt
17
 
18
- # Copy the application code (excluding models)
19
  COPY app /code/app
20
- COPY ./app/main.py .
21
 
22
  # Create models directory
23
  RUN mkdir -p /code/models
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Copy requirements first to leverage Docker cache
13
+ COPY requirements.txt requirements.txt
14
 
15
  # Install Python dependencies
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
 
18
+ # Copy the application code
19
  COPY app /code/app
20
+ COPY main.py .
21
 
22
  # Create models directory
23
  RUN mkdir -p /code/models