Files
DataRush/services/frontend/Dockerfile
T
2025-03-01 01:10:55 +03:00

18 lines
331 B
Docker

# Stage 1: Build the Vite app using Bun
FROM oven/bun:latest AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
# Stage 2: Serve the built files with Nginx
FROM nginx:latest
COPY --from=builder /app/dist /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]