Files
personal-website/Dockerfile
Stan Runge d0c7b6548b
Some checks failed
Test and deploy staging / staging (push) Has been cancelled
beeeeg update
2026-09-23 04:16:50 +00:00

23 lines
644 B
Docker
Executable File

FROM oven/bun:1.4.0 AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
FROM oven/bun:1.4.0
WORKDIR /app
ARG GIT_SHA=dev
ENV APP_VERSION=$GIT_SHA
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/build ./build
COPY --from=builder /app/scripts ./scripts
COPY --from=builder /app/data ./data
COPY --from=builder /app/src/lib/server/db/schema ./src/lib/server/db/schema
COPY --from=builder /app/src/lib/availability.ts ./src/lib/availability.ts
COPY package.json ./
EXPOSE 3000
ENV NODE_ENV=production
ENV BODY_SIZE_LIMIT=6M
CMD ["bun", "build/index.js"]