seepuls/apps/api/Dockerfile
Till JS 0db1f17d65
Some checks are pending
CI / validate (push) Waiting to run
fix(build): seepuls-api Docker mit --prod (skip devDeps)
Der Docker-Build zog @mana/shared-share-protocol (devDep, nur fürs
validate-manifest-Script) und scheiterte mit 404, weil keine Verdaccio-
Auth im Build-Kontext liegt (.npmrc gitignored). --prod überspringt
devDeps; kein Runtime-Code braucht sie (Boot-Migration nutzt drizzle-orm,
nicht drizzle-kit). Stellt die im Dockerfile dokumentierte dep-arm-
Build-Absicht wieder her — Prod-Image braucht Verdaccio gar nicht.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-29 21:45:49 +02:00

25 lines
687 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Seepuls-API: Hono + Bun, single-stage.
# Build-Context = Repo-Root (infrastructure/docker-compose.production.yml).
# Phase α-0 ist dep-arm — keine @mana/*-Pakete via Verdaccio, kein
# NPM_AUTH_TOKEN nötig. Migration auf @mana/shared-app-tpl ist Phase 1.
FROM oven/bun:1.1-alpine
WORKDIR /app
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json tsconfig.base.json ./
COPY apps/api/package.json apps/api/
RUN apk add --no-cache nodejs npm bash \
&& npm install -g pnpm@9.15.9 \
&& pnpm install --frozen-lockfile --prod
COPY apps/api apps/api
COPY app-manifest.json ./app-manifest.json
WORKDIR /app/apps/api
EXPOSE 3095
CMD ["bun", "run", "src/index.ts"]