This repository has no description
713 B
26 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
9COPY <<'EOF' /usr/local/bin/camo-entrypoint.sh
10#!/bin/sh
11set -eu
12if [ -f /caddy-ca/root.crt ]; then
13 cp /caddy-ca/root.crt /usr/local/share/ca-certificates/caddy-dev.crt
14 update-ca-certificates >/dev/null
15fi
16npm ci --no-audit --no-fund
17exec npx wrangler dev --ip 0.0.0.0 --port 8787 \
18 --var "CAMO_SHARED_SECRET:${CAMO_SHARED_SECRET}"
19EOF
20RUN chmod +x /usr/local/bin/camo-entrypoint.sh
21
22WORKDIR /src
23
24EXPOSE 8787
25
26ENTRYPOINT ["/usr/local/bin/camo-entrypoint.sh"]