diff --git a/Dockerfile b/Dockerfile index 8055890..c2f48d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file