Liantsoaxx08 commited on
Commit
08268df
·
1 Parent(s): 1cbf0b3

modifing dockerfile content

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -4,19 +4,24 @@ FROM python:3.10-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Install system dependencies (if needed for TensorFlow)
8
  RUN apt-get update && apt-get install -y \
 
 
9
  libgl1-mesa-glx \
10
  libglib2.0-0 \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
 
 
 
 
 
13
  # Copy requirements file and install dependencies
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Copy all application files
18
- COPY . .
19
-
20
  # Expose the port Hugging Face Spaces expects
21
  EXPOSE 7860
22
 
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install Git and Git LFS
8
  RUN apt-get update && apt-get install -y \
9
+ git \
10
+ git-lfs \
11
  libgl1-mesa-glx \
12
  libglib2.0-0 \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Copy all files (including .gitattributes for LFS)
16
+ COPY . .
17
+
18
+ # Fetch LFS files explicitly
19
+ RUN git lfs install && git lfs pull
20
+
21
  # Copy requirements file and install dependencies
22
  COPY requirements.txt .
23
  RUN pip install --no-cache-dir -r requirements.txt
24
 
 
 
 
25
  # Expose the port Hugging Face Spaces expects
26
  EXPOSE 7860
27