react-docker-optimization/Dockerfile
hadestructhor eb0d43e589
All checks were successful
ci/woodpecker/manual/workflow Pipeline was successful
feat: RsPack Bun Dockerfile
2025-01-05 18:06:10 +01:00

11 lines
No EOL
282 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 nginx:stable-alpine AS production
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]