# Optional: reproducible toolchain to test and deploy without installing Node locally.
#   docker build -t tg-worker .
#   docker run --rm tg-worker                                   # runs the tests
#   docker run --rm -e CLOUDFLARE_API_TOKEN tg-worker npx wrangler deploy
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --no-audit --no-fund
COPY . .
USER node
CMD ["npm", "test"]
