FROM oven/bun:1-alpine WORKDIR /app COPY package*.json ./ COPY tsconfig*.json ./ COPY vite.config.ts ./ RUN bun install --production COPY index.html ./ COPY src ./src COPY public ./public RUN bun install vite @vitejs/plugin-react && bun run build RUN bun build src/server/index.ts --outdir server-dist --target bun EXPOSE 7860 ENV PORT=7860 ENV NODE_ENV=production # Run server dari folder berbeda CMD ["bun", "run", "server-dist/index.js"]