mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-15 04:16:30 +08:00
* fix: use general cleanup failure messages * fix: limit cleanup message change to false results * test: cover address activity controls in existing e2e workers * test: keep the default e2e worker entry unchanged * test: extend existing address activity e2e coverage * test: prepare historical timestamps through shared D1 files * test: assert exact cleanup validation errors * test: exclude D1 metadata when locating the test database * test: exercise address activity through real API flows * test: prepare activity fixtures with admin APIs
20 lines
632 B
Docker
20 lines
632 B
Docker
FROM node:24-slim
|
|
|
|
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
|
RUN corepack enable && corepack prepare pnpm@10.10.0 --activate
|
|
|
|
WORKDIR /app/worker
|
|
|
|
COPY worker/package.json worker/pnpm-lock.yaml ./
|
|
COPY worker/patches/ patches/
|
|
RUN pnpm install --frozen-lockfile || (echo "WARN: frozen-lockfile failed, falling back to pnpm install" && pnpm install)
|
|
|
|
COPY worker/src/ src/
|
|
COPY worker/tsconfig.json ./
|
|
ARG WRANGLER_TOML=e2e/fixtures/wrangler.toml.e2e
|
|
COPY ${WRANGLER_TOML} wrangler.toml
|
|
|
|
EXPOSE 8787
|
|
|
|
CMD ["pnpm", "exec", "wrangler", "dev", "--port", "8787", "--ip", "0.0.0.0", "--test-scheduled"]
|