Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -34,7 +34,6 @@ RUN set -eux; \
|
|
| 34 |
FROM python:3.11-slim
|
| 35 |
WORKDIR /app
|
| 36 |
|
| 37 |
-
# optional: keep git only if you truly need it at runtime
|
| 38 |
RUN apt-get update \
|
| 39 |
&& apt-get install -y --no-install-recommends ca-certificates \
|
| 40 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -44,6 +43,9 @@ RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
| 44 |
|
| 45 |
COPY api/ /app/api/
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
# ✅ always copy unified output to /app/web/build
|
| 48 |
COPY --from=web_builder /web/out /app/web/build
|
| 49 |
|
|
|
|
| 34 |
FROM python:3.11-slim
|
| 35 |
WORKDIR /app
|
| 36 |
|
|
|
|
| 37 |
RUN apt-get update \
|
| 38 |
&& apt-get install -y --no-install-recommends ca-certificates \
|
| 39 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 43 |
|
| 44 |
COPY api/ /app/api/
|
| 45 |
|
| 46 |
+
# ✅ CRITICAL: copy course data into image
|
| 47 |
+
COPY data/ /app/data/
|
| 48 |
+
|
| 49 |
# ✅ always copy unified output to /app/web/build
|
| 50 |
COPY --from=web_builder /web/out /app/web/build
|
| 51 |
|