From c659dfd8cc8c4ce8d0dc7f54404f0b01698375d0 Mon Sep 17 00:00:00 2001 From: Sanju Sivalingam Date: Tue, 17 Feb 2026 14:46:31 +0530 Subject: [PATCH] feat: add web Dockerfile for Railway deployment Co-Authored-By: Claude Opus 4.6 --- web/Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 web/Dockerfile diff --git a/web/Dockerfile b/web/Dockerfile new file mode 100644 index 0000000..2e38441 --- /dev/null +++ b/web/Dockerfile @@ -0,0 +1,19 @@ +FROM oven/bun:1 AS builder + +WORKDIR /app +COPY package.json bun.lock ./ +RUN bun install --frozen-lockfile + +COPY . . +RUN bun run build + +FROM oven/bun:1 + +WORKDIR /app +COPY --from=builder /app/build ./build +COPY --from=builder /app/package.json . +COPY --from=builder /app/node_modules ./node_modules + +EXPOSE 3000 +ENV PORT=3000 +CMD ["bun", "build/index.js"]