troylusty.com/Dockerfile
2025-02-24 17:00:20 +00:00

12 lines
262 B
Docker

FROM oven/bun:latest as bun
USER bun
WORKDIR /usr/src/app
COPY . .
RUN ["bun", "install", "--frozen-lockfile"]
RUN ["bunx", "--bun", "astro", "build"]
FROM ghcr.io/static-web-server/static-web-server:latest
WORKDIR /
COPY --from=bun /usr/src/app/dist /public