electro-sb commited on
Commit
c403731
·
1 Parent(s): 57987b1

Add ls command to Dockerfile for debugging

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -6,6 +6,8 @@ WORKDIR /app/frontend/web
6
  COPY web/package*.json ./
7
  RUN npm install
8
  COPY web/ ./
 
 
9
 
10
  # Stage 2: Build the Python backend (switching to Debian-based image)
11
  FROM python:3.11-slim AS backend-builder
@@ -35,7 +37,7 @@ RUN apt-get update && \
35
  WORKDIR /app
36
 
37
  # Copy the frontend code and dependencies
38
- COPY --from=frontend-builder /app/frontend/web/ ./web/
39
  RUN chmod -R 777 ./web
40
 
41
  # Copy the installed Python dependencies
 
6
  COPY web/package*.json ./
7
  RUN npm install
8
  COPY web/ ./
9
+ RUN npm run build
10
+ RUN ls -la /app/frontend/web/
11
 
12
  # Stage 2: Build the Python backend (switching to Debian-based image)
13
  FROM python:3.11-slim AS backend-builder
 
37
  WORKDIR /app
38
 
39
  # Copy the frontend code and dependencies
40
+ COPY --from=frontend-builder /app/frontend/web/dist/ ./web/dist/
41
  RUN chmod -R 777 ./web
42
 
43
  # Copy the installed Python dependencies