# Build context is the repository root. FROM node:24-alpine AS build WORKDIR /src COPY . . RUN corepack pnpm install --frozen-lockfile \ && corepack pnpm --filter @homepage/jobs-service build FROM node:24-alpine # Tools job scripts can rely on. RUN apk add --no-cache bash coreutils curl git jq \ && printf '#!/bin/sh\nexec node /app/jobctl.js "$@"\n' > /usr/local/bin/jobctl \ && chmod 0755 /usr/local/bin/jobctl COPY --from=build /src/apps/jobs/dist/ /app/ # Compose runs the service as the owner of the content directory instead. USER 10003:10003 CMD ["node", "/app/main.js"]