mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-27 19:19:56 +08:00
* fix: update AI extract default model * fix: update e2e worker node version * fix: use node lts for e2e worker * fix: align AI model and CI node version
20 lines
612 B
Docker
20 lines
612 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"]
|