2025-01-04 17:39:34 +01:00
|
|
|
# Build stage of the application
|
2025-06-21 02:02:30 +02:00
|
|
|
FROM oven/bun@sha256:ffd754d1d771513d7b21fb013b60bfc1e22e862d310e9727726d25d1827b6a06 AS build
|
2025-01-04 17:39:34 +01:00
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
2025-01-05 18:06:10 +01:00
|
|
|
RUN bun i && bun run build
|
2025-01-04 17:39:34 +01:00
|
|
|
|
|
|
|
# Production stage to run the application
|
2025-06-21 02:02:30 +02:00
|
|
|
FROM cgr.dev/chainguard/nginx@sha256:3f441909e00e45dadfb8b27db23b3045a3a70007b7f7062e86b48b4ddeda8f15 AS production
|
2025-01-05 18:06:10 +01:00
|
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
2025-01-06 19:42:13 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|