build site with bun (#32)

This commit is contained in:
Troy 2025-01-18 21:50:40 +00:00 committed by GitHub
parent 3a886c4493
commit bf087a566f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 100 additions and 9447 deletions

View file

@ -1,12 +1,12 @@
FROM node:alpine as node
USER node
FROM oven/bun:alpine as bun
USER bun
WORKDIR /usr/src/app
COPY . .
RUN ["npm", "ci"]
RUN ["npm", "run", "build"]
RUN ["bun", "install", "--frozen-lockfile"]
RUN ["bun", "run", "build"]
FROM ghcr.io/static-web-server/static-web-server:latest
WORKDIR /
COPY --from=node /usr/src/app/dist /public
COPY --from=bun /usr/src/app/dist /public