fix: update server package-lock.json and use npm install in Dockerfile

This commit is contained in:
2026-08-10 07:52:06 +00:00
parent 944f9196e1
commit 7b2de130e1
2 changed files with 149 additions and 55 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ WORKDIR /build
ARG VITE_API_URL=/api
COPY package*.json ./
RUN npm ci
RUN npm install
COPY . .
RUN VITE_API_URL=$VITE_API_URL npm run build
@@ -46,7 +46,7 @@ COPY --from=builder /build/dist /usr/share/nginx/html
# Copy server files
COPY server/package*.json ./server/
RUN cd ./server && npm ci
RUN cd ./server && npm install --omit=dev
COPY server/ ./server/