wahoo/Dockerfile

25 lines
450 B
Text
Raw Normal View History

2026-05-14 21:12:46 +07:00
FROM oven/bun:1-alpine AS builder
RUN apk add --no-cache python3 make g++ linux-headers
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun --bun run build
# ---- runtime ----
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/.output .output
2026-05-17 18:46:21 +07:00
COPY --from=builder /app/node_modules/ws .output/server/node_modules/ws
2026-05-14 21:12:46 +07:00
ENV NODE_ENV=production
EXPOSE 3000
CMD ["node", ".output/server/index.mjs"]