Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -7,6 +7,8 @@ COPY flare-ui/package*.json ./
|
|
7 |
RUN npm install --legacy-peer-deps
|
8 |
COPY flare-ui/ ./
|
9 |
RUN npm run build
|
|
|
|
|
10 |
|
11 |
# Python runtime
|
12 |
FROM python:3.10-slim
|
@@ -38,8 +40,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
38 |
# ============================== APP CODE ===============================
|
39 |
COPY . .
|
40 |
|
41 |
-
# Copy Angular build -
|
42 |
-
COPY --from=angular-build /
|
43 |
|
44 |
# ============================== START CMD ==============================
|
45 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
7 |
RUN npm install --legacy-peer-deps
|
8 |
COPY flare-ui/ ./
|
9 |
RUN npm run build
|
10 |
+
# Debug: List directories to see where the build output is
|
11 |
+
RUN ls -la /app/ && ls -la /app/dist/ || true && ls -la / || true
|
12 |
|
13 |
# Python runtime
|
14 |
FROM python:3.10-slim
|
|
|
40 |
# ============================== APP CODE ===============================
|
41 |
COPY . .
|
42 |
|
43 |
+
# Copy Angular build - Try the ../static path
|
44 |
+
COPY --from=angular-build /static ./static
|
45 |
|
46 |
# ============================== START CMD ==============================
|
47 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|