diff --git a/Dockerfile b/Dockerfile index 469700d..127e92b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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;"]