Fix Dockerfile: use npm install, copy public folder

This commit is contained in:
MoreminiMore
2026-04-22 06:47:49 +07:00
parent 28d3d5db74
commit 1f12c8de60

View File

@@ -1,15 +1,15 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
RUN npm install
COPY . .
RUN npm run build
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --production
RUN npm install --production
COPY --from=builder /app/dist ./dist
RUN mkdir -p public/icons
COPY --from=builder /app/public ./public
EXPOSE 4321
CMD ["node", "dist/server/entry.mjs"]