add joseluisq/static-web-server for production

This commit is contained in:
2025-02-23 13:58:41 -05:00
parent 62ba198b40
commit d6effa3838

View File

@ -1,7 +1,16 @@
FROM oven/bun AS build
FROM oven/bun AS builder
COPY package.json astro.config.mjs /tmp/
COPY src public /tmp/
WORKDIR /rhpidfyre.io
COPY src package.json vite.config.js tsconfig.json ./
RUN bun run install
RUN bun run build
FROM joseluisq/static-web-server
COPY --from=builder /rhpidfyre.io/dist .
EXPOSE 8787/tcp
ENTRYPOINT [ "static-web-server", "-p", "8787", "-d", "dist/", "-g", "trace" ]