DevOps Config

This commit is contained in:
2026-01-30 10:24:07 +02:00
commit b7167bb856
4 changed files with 98 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# Stage 1: Build the app
FROM oven/bun:latest AS builder
WORKDIR /app
COPY package.json bun.lockb ./
RUN bun install
#--frozen-lockfile
COPY . .
RUN bun run build
# Stage 2: Serve with Nginx
FROM nginx:alpine
# Copy the build output from Vite (usually the 'dist' folder)
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]