This repository has no description
909 B
29 lines
1# Development only. Not for production use.
2FROM node:24-slim
3
4# slim carries no trust store and workerd reads the system one
5RUN apt-get update \
6 && apt-get install -y --no-install-recommends ca-certificates \
7 && rm -rf /var/lib/apt/lists/*
8
9RUN corepack enable && corepack install -g pnpm@11.17.0
10
11COPY <<'EOF' /usr/local/bin/camo-entrypoint.sh
12#!/bin/sh
13set -eu
14if [ -f /caddy-ca/root.crt ]; then
15 cp /caddy-ca/root.crt /usr/local/share/ca-certificates/caddy-dev.crt
16 update-ca-certificates >/dev/null
17fi
18# store must share the node_modules volume's filesystem for hardlinks
19corepack pnpm install --frozen-lockfile --store-dir /src/node_modules/.pnpm-store
20exec corepack pnpm exec wrangler dev --ip 0.0.0.0 --port 8787 \
21 --var "CAMO_SHARED_SECRET:${CAMO_SHARED_SECRET}"
22EOF
23RUN chmod +x /usr/local/bin/camo-entrypoint.sh
24
25WORKDIR /src
26
27EXPOSE 8787
28
29ENTRYPOINT ["/usr/local/bin/camo-entrypoint.sh"]