ci: 构建并推送静态站镜像

This commit is contained in:
necobot
2026-07-25 23:31:39 +08:00
parent 2f058981a6
commit dbcc03f545
4 changed files with 149 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM oven/bun:1.3.11-alpine AS build
WORKDIR /app
COPY package.json index.html tsconfig.json ./
COPY scripts ./scripts
COPY src ./src
RUN bun run build
FROM nginxinc/nginx-unprivileged:1.29.4-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080