test docker
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -32,15 +32,16 @@ RUN apt-get update && \
|
|
| 32 |
rm -rf /var/lib/apt/lists/*
|
| 33 |
|
| 34 |
# Install Python dependencies
|
| 35 |
-
COPY backend/requirements.txt .
|
| 36 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 37 |
pip install --no-cache-dir -r requirements.txt
|
| 38 |
|
| 39 |
# Copy backend source code
|
| 40 |
-
COPY backend/ .
|
| 41 |
|
| 42 |
# Copy React build output into ./static for FastAPI
|
| 43 |
-
|
|
|
|
| 44 |
|
| 45 |
# ----------------------------
|
| 46 |
# HF Spaces ENV
|
|
|
|
| 32 |
rm -rf /var/lib/apt/lists/*
|
| 33 |
|
| 34 |
# Install Python dependencies
|
| 35 |
+
COPY backend/requirements.txt ./
|
| 36 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 37 |
pip install --no-cache-dir -r requirements.txt
|
| 38 |
|
| 39 |
# Copy backend source code
|
| 40 |
+
COPY backend/ ./
|
| 41 |
|
| 42 |
# Copy React build output into ./static for FastAPI
|
| 43 |
+
# FIX: The Vite/React build outputs to /build/build/client
|
| 44 |
+
COPY --from=frontend-builder /build/build/client ./static
|
| 45 |
|
| 46 |
# ----------------------------
|
| 47 |
# HF Spaces ENV
|