diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e0cee13 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:18-alpine AS builder + +# Enable corepack and install pnpm +RUN corepack enable && corepack prepare pnpm@latest --activate + +# Disable interactive prompts +ENV CI=true + +WORKDIR /app +COPY . . + +# Install dependencies and build +RUN pnpm install && pnpm build + +FROM node:18-alpine AS runner + +RUN corepack enable && corepack prepare pnpm@latest --activate + +WORKDIR /app +COPY --from=builder /app ./ + +EXPOSE 3000 + +CMD ["pnpm", "start"] \ No newline at end of file