react-docker-optimization/Dockerfile
hadestructhor eae6b8a7c2
All checks were successful
ci/woodpecker/tag/workflow Pipeline was successful
ci/woodpecker/manual/workflow Pipeline was successful
feat: Distroless Dockerfile
2025-01-06 19:42:13 +01:00

11 lines
No EOL
296 B
Docker

# Build stage of the application
FROM oven/bun AS build
WORKDIR /app
COPY . .
RUN bun i && bun run build
# Production stage to run the application
FROM cgr.dev/chainguard/nginx AS production
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080
ENTRYPOINT ["nginx", "-g", "daemon off;"]