mirror of
https://github.com/d0zingcat/alert-message-center.git
synced 2026-05-13 15:09:19 +00:00
22 lines
445 B
Docker
22 lines
445 B
Docker
# Build stage
|
|
FROM oven/bun:1-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy the entire project
|
|
COPY . .
|
|
|
|
# Install dependencies
|
|
RUN bun install --frozen-lockfile
|
|
|
|
# Build the web app
|
|
WORKDIR /app/apps/web
|
|
RUN bun run build
|
|
|
|
# Serve stage
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/apps/web/dist /usr/share/nginx/html
|
|
# Add a custom nginx config if needed to handle SPA routing, but for now default is okay
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"]
|