Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -3,13 +3,12 @@
|
|
| 3 |
FROM node:18-slim AS angular-build
|
| 4 |
WORKDIR /app
|
| 5 |
COPY flare-ui/package*.json ./
|
| 6 |
-
|
| 7 |
# Clean npm cache and install with legacy peer deps
|
| 8 |
RUN npm cache clean --force && npm install --legacy-peer-deps
|
| 9 |
COPY flare-ui/ ./
|
| 10 |
RUN npm run build
|
| 11 |
# Debug: List directories to see where the build output is
|
| 12 |
-
RUN ls -la /app/ && ls -la /app/dist/ || true && ls -la / || true
|
| 13 |
|
| 14 |
# Python runtime
|
| 15 |
FROM python:3.10-slim
|
|
@@ -41,8 +40,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 41 |
# ============================== APP CODE ===============================
|
| 42 |
COPY . .
|
| 43 |
|
| 44 |
-
# Copy Angular build output
|
| 45 |
-
COPY --from=angular-build /app/
|
| 46 |
|
| 47 |
# Create assets directory if it doesn't exist
|
| 48 |
RUN mkdir -p ./static/assets
|
|
|
|
| 3 |
FROM node:18-slim AS angular-build
|
| 4 |
WORKDIR /app
|
| 5 |
COPY flare-ui/package*.json ./
|
|
|
|
| 6 |
# Clean npm cache and install with legacy peer deps
|
| 7 |
RUN npm cache clean --force && 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 /app/dist/flare-ui || true
|
| 12 |
|
| 13 |
# Python runtime
|
| 14 |
FROM python:3.10-slim
|
|
|
|
| 40 |
# ============================== APP CODE ===============================
|
| 41 |
COPY . .
|
| 42 |
|
| 43 |
+
# Copy Angular build output
|
| 44 |
+
COPY --from=angular-build /app/dist/flare-ui ./static
|
| 45 |
|
| 46 |
# Create assets directory if it doesn't exist
|
| 47 |
RUN mkdir -p ./static/assets
|