Deployer commited on
Commit
d3c87d2
·
1 Parent(s): 54dd50e

Fix npm EBADPLATFORM build error by copying only package.json

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -1,8 +1,9 @@
1
  # Stage 1: Build React frontend
2
  FROM node:20-alpine AS build
3
  WORKDIR /app/frontend
4
- COPY frontend/package*.json ./
5
  RUN npm install
 
6
  COPY frontend/ ./
7
  RUN npm run build
8
 
 
1
  # Stage 1: Build React frontend
2
  FROM node:20-alpine AS build
3
  WORKDIR /app/frontend
4
+ COPY frontend/package.json ./
5
  RUN npm install
6
+
7
  COPY frontend/ ./
8
  RUN npm run build
9