Skip to content

Commit d14d157

Browse files
stolinskiclaude
andcommitted
Install CA certificates in the local development image
node:22-slim has no CA certificates, and workerd refuses to start without them, so the container crash-looped on its first migration step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ee34aa7 commit d14d157

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Never deploy this image; production runs on Cloudflare Workers.
33
FROM node:22-slim
44
WORKDIR /app
5+
# node:22-slim ships without CA certificates, and workerd refuses to start without them.
6+
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates && rm -rf /var/lib/apt/lists/*
57
RUN corepack enable
68
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
79
RUN pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)