Updated Dockerfile

This commit is contained in:
2026-02-19 12:52:18 +01:00
parent 216d91c57d
commit 01d6ef11cb

View File

@@ -1,10 +1,11 @@
FROM node:20-alpine AS builder
FROM node:20-slim AS builder
WORKDIR /app
COPY package.json ./
COPY package*.json ./
COPY pnpm-lock.yaml ./
RUN npm install -g pnpm
RUN pnpm install
COPY . .
@@ -12,6 +13,6 @@ COPY . .
RUN pnpm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY --from=builder /app/build /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]