feat: added Dockerfile for frontend

This commit is contained in:
ITQ committed 2025-03-01 00:30:20 +03:00
1 parent ff1d315e2a
commit 666462a1ae
2 files changed
+19 -2

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
# 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 npm 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;"]