prshntdxt commited on
Commit
16f826c
·
verified ·
1 Parent(s): 5497b71

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -14
Dockerfile CHANGED
@@ -2,10 +2,7 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # --- System deps ---
6
  RUN apt-get update && apt-get install -y \
7
- git \
8
- git-lfs \
9
  libsm6 \
10
  libxext6 \
11
  libxrender-dev \
@@ -13,19 +10,13 @@ RUN apt-get update && apt-get install -y \
13
  pkg-config \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # --- Enable Git LFS ---
17
- RUN git lfs install
18
-
19
- # --- Copy repo ---
20
- COPY . .
21
-
22
- # --- Pull LFS files INSIDE container ---
23
- RUN git lfs pull
24
-
25
- # --- Install Python deps ---
26
  RUN pip install --no-cache-dir -r requirements.txt
27
 
28
- # --- Runtime ---
 
 
 
29
  EXPOSE 7860
30
  ENV PYTHONUNBUFFERED=1
31
 
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
 
 
6
  libsm6 \
7
  libxext6 \
8
  libxrender-dev \
 
10
  pkg-config \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ COPY requirements.txt .
 
 
 
 
 
 
 
 
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ COPY main.py .
17
+ COPY schemas.py .
18
+ COPY inference/ ./inference/
19
+
20
  EXPOSE 7860
21
  ENV PYTHONUNBUFFERED=1
22