Files
taylor_electracal/Dockerfile
2026-01-30 10:24:07 +02:00

18 lines
372 B
Docker

# 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;"]