ChitranshSahu commited on
Commit
78b1def
·
1 Parent(s): c35674b

Update Dockerfile to explicitly pull LFS files

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -6
Dockerfile CHANGED
@@ -1,14 +1,18 @@
1
- # Dockerfile
2
  FROM python:3.10-slim
3
 
4
- WORKDIR /code
 
5
 
6
- # Copy requirements and install dependencies
7
- COPY ./requirements.txt /code/requirements.txt
8
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
9
 
10
- # Copy your application code
11
  COPY . /code/
12
 
 
 
 
 
 
 
13
  # Command to run the app
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies: git and git-lfs
4
+ RUN apt-get update && apt-get install -y git git-lfs && git-lfs install
5
 
6
+ WORKDIR /code
 
 
7
 
8
+ # Copy your entire repository content (including .git folder)
9
  COPY . /code/
10
 
11
+ # Explicitly pull the LFS files to download the actual model
12
+ RUN git lfs pull
13
+
14
+ # Now, install the Python dependencies
15
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
+
17
  # Command to run the app
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]