Compare commits

...

1 Commits

Author SHA1 Message Date
centdix
966ab1d3a5 fix sandbox 2026-02-27 20:01:11 +01:00

View File

@@ -33,6 +33,9 @@ ENV PATH="/root/.cargo/bin:$PATH"
RUN cargo install sqlx-cli --no-default-features --features native-tls,postgres \
&& cargo install cargo-watch
# ── asciinema (cargo build for latest) ───────────────────────────────────────
RUN cargo install asciinema
# ── Bun ───────────────────────────────────────────────────────────────────────
RUN curl -fsSL https://bun.sh/install | bash
ENV PATH="/root/.bun/bin:$PATH"
@@ -57,12 +60,16 @@ ENV PATH="/root/.local/bin:$PATH"
RUN npm i -g @openai/codex
# ── Mermaid CLI ───────────────────────────────────────────────────────────────
# Skip puppeteer's own Chromium download; reuse the one Playwright already installed above
# Skip puppeteer's own Chromium download; reuse Playwright's headless shell
# (the full "chrome" binary crashes with a crashpad handler error in containers)
RUN PUPPETEER_SKIP_DOWNLOAD=true npm i -g @mermaid-js/mermaid-cli \
&& CHROMIUM=$(find /root/.cache/ms-playwright -name 'chrome' -executable -type f | head -1) \
&& CHROMIUM=$(find /root/.cache/ms-playwright -name 'chrome-headless-shell' -executable -type f | head -1) \
&& printf '{"args":["--no-sandbox","--disable-setuid-sandbox"],"executablePath":"%s"}\n' "$CHROMIUM" \
> /root/.puppeteerrc.json
# ── Allow non-root UID (--user) to access tools installed in /root ───────────
RUN chmod -R 777 /root
# ── Entrypoint (run explicitly via docker exec, not on container start) ──────
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh