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

Clean deployment to new Space

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -11
Dockerfile CHANGED
@@ -1,18 +1,10 @@
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"]
 
1
  FROM python:3.10-slim
2
 
 
 
 
3
  WORKDIR /code
4
 
5
+ COPY ./requirements.txt /code/requirements.txt
 
 
 
 
 
 
6
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
7
 
8
+ COPY . /code/
9
+
10
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]