Files
PaperSats/infra/Dockerfile.worker
MichilisandClaude Opus 5.5 f09445b6ad
ci / check (push) Canceled after 0s
ci / images (push) Canceled after 0s
ci / e2e (push) Canceled after 0s
Initial commit
Paper Sats: design and print paper notes that carry sats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 05:15:30 +00:00

17 lines
532 B
Docker

# Production image for the worker. Build from the repository root:
# docker build -f infra/Dockerfile.worker -t paper-sats-worker .
FROM node:22-slim AS build
RUN corepack enable
WORKDIR /repo
COPY . .
RUN pnpm install --frozen-lockfile
FROM node:22-slim
RUN useradd --create-home app
COPY --chown=app:app --from=build /repo /repo
WORKDIR /repo/apps/worker
USER app
ENV NODE_ENV=production
# Node directly, not through pnpm, so SIGTERM reaches the worker and it can finish a melt.
CMD ["node", "--import", "tsx", "src/index.ts"]