pujanpaudel commited on
Commit
d03b8af
·
verified ·
1 Parent(s): 46f94d5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -11,7 +11,8 @@ WORKDIR /code
11
  # RUN apt-get update && apt-get install -y --no-install-recommends some-package && rm -rf /var/lib/apt/lists/*
12
 
13
  # 4. Copy the requirements file into the container
14
- COPY requirements.txt .
 
15
 
16
  # 5. Install Python dependencies
17
  # Upgrade pip and install requirements, ensuring CPU PyTorch is used
@@ -20,8 +21,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
20
  pip install --no-cache-dir -r requirements.txt
21
 
22
  # 6. Copy your application code and model file into the container
23
- COPY app.py .
24
- COPY model.pth .
25
  # Add any other necessary files/folders here (e.g., utility scripts, templates)
26
  # COPY utils/ ./utils/
27
 
 
11
  # RUN apt-get update && apt-get install -y --no-install-recommends some-package && rm -rf /var/lib/apt/lists/*
12
 
13
  # 4. Copy the requirements file into the container
14
+ COPY ./requirements.txt /code/requirements.txt
15
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
 
17
  # 5. Install Python dependencies
18
  # Upgrade pip and install requirements, ensuring CPU PyTorch is used
 
21
  pip install --no-cache-dir -r requirements.txt
22
 
23
  # 6. Copy your application code and model file into the container
24
+ COPY . .
 
25
  # Add any other necessary files/folders here (e.g., utility scripts, templates)
26
  # COPY utils/ ./utils/
27