feat: refactor Notion API integration and update Docker configuration

This commit is contained in:
2026-03-16 14:39:18 +08:00
parent 8bb135a489
commit 7faa73c91f
10 changed files with 180 additions and 353 deletions

View File

@@ -1,14 +1,27 @@
FROM oven/bun:latest AS build
FROM oven/bun:1 AS build
ADD * /app/
WORKDIR /app
RUN bun install && \
bun run astro build
COPY package.json bun.lock ./
COPY tsconfig.json components.json astro.config.ts ./
COPY patches ./patches
COPY public ./public
COPY src ./src
ENV ASTRO_ADAPTER=node
RUN bun install --frozen-lockfile
RUN bun run build
FROM node:22-bookworm-slim
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
COPY --from=build /app/dist ./dist
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
EXPOSE 3000
CMD ["node", "dist/server/entry.mjs"]
CMD ["node", "dist/server/entry.mjs"]