Files
Cibello-app/infrastructure/docker/Dockerfile.worker
T
Claude 2f97fd96d3
CI / Typecheck, test & build (push) Failing after 45s
fix(docker): kopiera brand.config.json in i api- och worker-bygget
brand.config.json importeras av shared-types, api/routes/ops.ts och worker/processors/eoc-push.ts, men Dockerfilerna kopierade aldrig in den i bygg-steget sa tsup foll pa 'Could not resolve brand.config.json'. Lagt COPY brand.config.json efter pnpm install (cache-optimalt) i bade Dockerfile.api och Dockerfile.worker. Verifierat lokalt: pnpm build gron for api + worker.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-22 19:27:01 +00:00

23 lines
812 B
Docker
Raw 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.
# Worker multi-stage build (spec §5051)
FROM node:22-alpine AS builder
WORKDIR /build
RUN corepack enable
COPY package.json pnpm-workspace.yaml pnpm-lock.yaml .npmrc ./
COPY tsconfig.base.json turbo.json ./
COPY packages ./packages
COPY apps/worker ./apps/worker
RUN pnpm install --frozen-lockfile --filter @app/worker...
# brand.config.json importeras av shared-types + processors/eoc-push.ts krävs vid bygget
COPY brand.config.json ./
RUN pnpm --filter @app/worker build
FROM node:22-alpine AS runtime
RUN addgroup -S app && adduser -S app -G app
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /build/apps/worker/dist ./dist
COPY --from=builder /build/apps/worker/package.json ./package.json
COPY --from=builder /build/node_modules ./node_modules
USER app
CMD ["node", "dist/index.js"]