File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,12 @@ ENTRYPOINT ["/container-server/sandbox"]
199199# ============================================================================
200200FROM runtime-base AS opencode
201201
202+ RUN --mount=type=secret,id=wrangler_ca \
203+ if [ -f /run/secrets/wrangler_ca ] && [ -s /run/secrets/wrangler_ca ]; then \
204+ cp /run/secrets/wrangler_ca /usr/local/share/ca-certificates/wrangler-dev-ca.crt && \
205+ update-ca-certificates; \
206+ fi
207+
202208# Install OpenCode CLI via npm (avoids GitHub API rate limits)
203209RUN npm i -g opencode-ai \
204210 && opencode --version
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ docker build \
2929 --platform linux/amd64 \
3030 --build-arg SANDBOX_VERSION=" $VERSION " \
3131 -t " $IMAGE :$VERSION -opencode" \
32+ --secret id=wrangler_ca,src=" ${NODE_EXTRA_CA_CERTS:-/ dev/ null} " \
3233 .
3334
3435docker build \
You can’t perform that action at this time.
0 commit comments