deploy: split Dokploy services

This commit is contained in:
-Puter
2026-07-29 06:42:06 +05:30
parent d8a4bbe804
commit fd3980c6bf
6 changed files with 92 additions and 4 deletions

25
apps/web/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM oven/bun:1.3.14 AS build
WORKDIR /app
COPY . .
ARG VITE_AUTH_URL
ARG VITE_CONVEX_URL
ENV VITE_AUTH_URL=$VITE_AUTH_URL
ENV VITE_CONVEX_URL=$VITE_CONVEX_URL
RUN bun install --frozen-lockfile
RUN bun run --filter web build
FROM node:24-bookworm-slim
ENV HOST=0.0.0.0
ENV NODE_ENV=production
ENV PORT=3000
WORKDIR /app
COPY --from=build /app /app
EXPOSE 3000
CMD ["node", "apps/web/node_modules/.bin/react-router-serve", "apps/web/build/server/index.js"]