Skip to content

Commit a1228b7

Browse files
authored
fix: mount ssh agent socket in build container (#25)
1 parent b49f2fd commit a1228b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ RUN apt-get update && apt-get -y upgrade && apt-get install -y gcc libclang-dev
2424
RUN rustup target add x86_64-unknown-linux-gnu
2525
RUN rustup toolchain install stable-x86_64-unknown-linux-gnu
2626

27-
RUN cargo chef cook --release --target x86_64-unknown-linux-gnu --recipe-path recipe.json --bin zenith-builder-example
27+
RUN --mount=type=ssh cargo chef cook --release --target x86_64-unknown-linux-gnu --recipe-path recipe.json --bin zenith-builder-example
2828
COPY --exclude=target . .
2929

30-
RUN cargo build --release --target x86_64-unknown-linux-gnu --bin zenith-builder-example
30+
RUN --mount=type=ssh cargo build --release --target x86_64-unknown-linux-gnu --bin zenith-builder-example
3131

3232
# Stage 3: Final image for running in the env
3333
FROM --platform=$TARGETPLATFORM debian:bookworm-slim

0 commit comments

Comments
 (0)