# 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:247e91f0acab7e75049205d91cceae3ad3e072dc33810fe6e895e180b5f9f9ba AS production COPY --from=build /app/dist /usr/share/nginx/html EXPOSE 8080 ENTRYPOINT ["nginx", "-g", "daemon off;"]