react-docker-optimization/Dockerfile
Renovate Bot 0fac64c254
All checks were successful
ci/woodpecker/pr/workflow Pipeline was successful
chore(deps): pin dependencies
2025-09-06 00:01:32 +00:00

11 lines
No EOL
440 B
Docker

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