mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
9a2645c607
[body] [footer(s)]
20 lines
378 B
Docker
20 lines
378 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
|
|
|
|
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|