ciyidogan commited on
Commit
212ea89
·
verified ·
1 Parent(s): 2f1118c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 - Fix: correct path from angular-build stage
42
- COPY --from=angular-build /app/static ./static
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"]