FROM oven/bun:latest AS build
WORKDIR /app
ENV NODE_ENV=production
COPY .. .
RUN bun install --prod
FROM oven/bun:latest AS production
EXPOSE 3001
CMD ["bun", "start", "-p", "3001"]