Paper Sats: design and print paper notes that carry sats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
532 B
Docker
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"]
|