diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4f75c95 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules +.git +.gitignore +*.md +dist diff --git a/Dockerfile b/Dockerfile index d2e2399..2fd8983 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,8 @@ WORKDIR /app RUN yarn global add pnpm -COPY package.json pnpm-lock.yaml ./ +COPY package.json ./ +COPY pnpm-lock.yaml ./ RUN pnpm install @@ -17,6 +18,7 @@ FROM node:23-alpine AS runtime WORKDIR /app +COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist COPY --from=builder /app/package.json ./package.json COPY --from=builder /app/pnpm-lock.yaml ./pnpm-lock.yaml