mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-19 09:04:48 +00:00
fix: add SANDBOX_AGENT_SKIP_INSPECTOR=1 to Dockerfiles
This commit is contained in:
parent
41813f6572
commit
231660344c
4 changed files with 8 additions and 4 deletions
|
|
@ -62,10 +62,11 @@ ENV OPENSSL_DIR=/musl \
|
|||
COPY . .
|
||||
|
||||
# Build for Linux with musl (static binary) - x86_64
|
||||
# SANDBOX_AGENT_SKIP_INSPECTOR=1 skips embedding the inspector frontend
|
||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||
--mount=type=cache,target=/usr/local/cargo/git \
|
||||
--mount=type=cache,target=/build/target \
|
||||
cargo build -p sandbox-agent --release --target x86_64-unknown-linux-musl && \
|
||||
SANDBOX_AGENT_SKIP_INSPECTOR=1 cargo build -p sandbox-agent --release --target x86_64-unknown-linux-musl && \
|
||||
mkdir -p /artifacts && \
|
||||
cp target/x86_64-unknown-linux-musl/release/sandbox-agent /artifacts/sandbox-agent-x86_64-unknown-linux-musl
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue