add joseluisq/static-web-server for production
This commit is contained in:
15
Dockerfile
15
Dockerfile
@ -1,7 +1,16 @@
|
|||||||
FROM oven/bun AS build
|
FROM oven/bun AS builder
|
||||||
|
|
||||||
COPY package.json astro.config.mjs /tmp/
|
WORKDIR /rhpidfyre.io
|
||||||
COPY src public /tmp/
|
|
||||||
|
|
||||||
|
COPY src package.json vite.config.js tsconfig.json ./
|
||||||
|
|
||||||
|
RUN bun run install
|
||||||
RUN bun run build
|
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" ]
|
Reference in New Issue
Block a user