Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -10,7 +10,11 @@ WORKDIR /app
|
|
10 |
COPY requirements.txt .
|
11 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
12 |
|
13 |
-
#
|
|
|
|
|
|
|
|
|
14 |
COPY . .
|
15 |
|
16 |
# Expose the port for Gradio (default is 7860)
|
|
|
10 |
COPY requirements.txt .
|
11 |
RUN pip install --upgrade pip && pip install -r requirements.txt
|
12 |
|
13 |
+
# Pre-download model weights on CPU (this avoids heavy downloads after GUI launch)
|
14 |
+
COPY download_model.py .
|
15 |
+
RUN python download_model.py
|
16 |
+
|
17 |
+
# Copy the rest of the application code
|
18 |
COPY . .
|
19 |
|
20 |
# Expose the port for Gradio (default is 7860)
|