This commit is contained in:
2025-11-28 17:20:08 +08:00
parent 0b0650f374
commit f1d413afae
6 changed files with 49 additions and 403 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM oven/bun:latest AS build
ADD * /app/
WORKDIR /app
RUN bun install && \
bun run astro build
FROM node:22-alpine
WORKDIR /app
COPY --from=build /app/dist ./dist
COPY --from=build /app/package.json ./package.json
COPY --from=build /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", "dist/server/entry.mjs"]