2025-01-04 17:39:34 +01:00
|
|
|
# Build stage of the application
|
2025-08-05 02:09:23 +02:00
|
|
|
FROM oven/bun@sha256:31f25ad4c661322a3dc9d9d98fbf34989502b1ea588a2ca629da98c8e5a2d116 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-08-05 02:09:23 +02:00
|
|
|
FROM cgr.dev/chainguard/nginx@sha256:cf5e1e993b0a351365e998953b2224810ed9e7e80b513bbf1e6aea949013e6df 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;"]
|