Commit ·
49dc015
1
Parent(s): db10084
Deploy DeepFake Detector API - 2026-04-20 01:04:30
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -48,6 +48,11 @@ RUN python -m app.scripts.prefetch_models
|
|
| 48 |
# Copy full project contents after prefetch so docs/tests edits do not invalidate prefetch layers.
|
| 49 |
COPY --chown=user:user . /app
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
# Expose default app port
|
| 52 |
EXPOSE 7860
|
| 53 |
|
|
|
|
| 48 |
# Copy full project contents after prefetch so docs/tests edits do not invalidate prefetch layers.
|
| 49 |
COPY --chown=user:user . /app
|
| 50 |
|
| 51 |
+
# Final copy can strip executable mode from scripts on Windows hosts; re-apply execute bit.
|
| 52 |
+
USER root
|
| 53 |
+
RUN chmod +x /app/start.sh
|
| 54 |
+
USER user
|
| 55 |
+
|
| 56 |
# Expose default app port
|
| 57 |
EXPOSE 7860
|
| 58 |
|