Files
goose/services/ask-ai-bot/Dockerfile
T
BestCodes 849cc60fbc feat: ask ai discord bot (#6842)
Signed-off-by: The-Best-Codes <bestcodes.official@gmail.com>
2026-02-02 22:11:28 +00:00

31 lines
726 B
Docker

FROM oven/bun:1 AS base
WORKDIR /app
# Install dependencies
FROM base AS deps
COPY services/ask-ai-bot/package.json services/ask-ai-bot/bun.lock ./
RUN bun install --frozen-lockfile
# Build stage
FROM base AS build
COPY --from=deps /app/node_modules ./node_modules
COPY services/ask-ai-bot/ ./
RUN bun run build
# Production stage
FROM base AS production
ENV NODE_ENV=production
ENV DOCS_PATH=/app/docs
COPY --from=build /app/dist ./dist
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/package.json ./
# Copy documentation (only docs/ subdirectory with markdown files)
COPY documentation/docs ./docs
# Empty index.ts for discraft start to detect
RUN touch index.ts
CMD ["bun", "run", "start"]