Files
personal-website/Dockerfile
2026-08-30 22:24:55 +00:00

13 lines
243 B
Docker
Executable File

FROM oven/bun AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install
COPY . .
RUN bun run build
FROM oven/bun
WORKDIR /app
COPY --from=builder /app/build ./build
EXPOSE 3000
ENV NODE_ENV=production
CMD ["bun", "build/index.js"]