Commit
·
205fa6a
1
Parent(s):
3e30b9f
fix: copy only essential files instead of copying everything
Browse files- .dockerignore +7 -4
- Dockerfile +3 -2
.dockerignore
CHANGED
|
@@ -48,7 +48,10 @@ apt.txt
|
|
| 48 |
requirements2.txt
|
| 49 |
requirements-ci.txt
|
| 50 |
mypy.ini
|
| 51 |
-
api/
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
requirements2.txt
|
| 49 |
requirements-ci.txt
|
| 50 |
mypy.ini
|
| 51 |
+
api/
|
| 52 |
+
gfpgan/
|
| 53 |
+
ironman.mp4
|
| 54 |
+
wizard.mp4
|
| 55 |
+
*.jpg
|
| 56 |
+
*.png
|
| 57 |
+
*.jpeg
|
Dockerfile
CHANGED
|
@@ -46,8 +46,9 @@ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
|
|
| 46 |
imageio-ffmpeg \
|
| 47 |
huggingface_hub>=0.23.0
|
| 48 |
|
| 49 |
-
# Copy
|
| 50 |
-
COPY --chown=user:user . /app
|
|
|
|
| 51 |
|
| 52 |
# Switch to user
|
| 53 |
USER user
|
|
|
|
| 46 |
imageio-ffmpeg \
|
| 47 |
huggingface_hub>=0.23.0
|
| 48 |
|
| 49 |
+
# Copy only essential application files
|
| 50 |
+
COPY --chown=user:user api_server.py /app/
|
| 51 |
+
COPY --chown=user:user DeepFakeAI/ /app/DeepFakeAI/
|
| 52 |
|
| 53 |
# Switch to user
|
| 54 |
USER user
|