shivasai824 commited on
Commit
6eaab4c
·
1 Parent(s): 9726101

Fix: Install Git LFS and pull real model weights

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,18 +1,20 @@
1
- # Use Python 3.10
2
  FROM python:3.10
3
 
4
- # Set the working directory
 
 
5
  WORKDIR /app
6
 
7
- # Copy requirements and install
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copy the rest of the backend files
12
  COPY . .
13
 
14
- # Hugging Face Spaces use port 7860
 
 
15
  EXPOSE 7860
16
 
17
- # Start the server
18
  CMD ["python", "server.py"]
 
 
1
  FROM python:3.10
2
 
3
+ # Install Git and Git LFS
4
+ RUN apt-get update && apt-get install -y git git-lfs && git lfs install
5
+
6
  WORKDIR /app
7
 
8
+ # Copy requirements first for caching
9
  COPY requirements.txt .
10
  RUN pip install --no-cache-dir -r requirements.txt
11
 
12
+ # Copy everything else
13
  COPY . .
14
 
15
+ # IMPORTANT: Force pull the real LFS files into the container
16
+ RUN git lfs pull
17
+
18
  EXPOSE 7860
19
 
 
20
  CMD ["python", "server.py"]