File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ ARG TARGETPLATFORM
77RUN case "$TARGETPLATFORM" in \
88 "linux/amd64" ) echo x86_64-unknown-linux-musl > /rust_target.txt ;; \
99 "linux/arm64/v8" ) echo aarch64-unknown-linux-musl > /rust_target.txt && \
10- apt update && apt install -y gcc-aarch64-linux-gnu ;; \
10+ apt update && apt install -y gcc-aarch64-linux-gnu ;; \
1111 *) exit 1 ;; \
12- esac
12+ esac
1313RUN rustup target add $(cat /rust_target.txt)
1414
1515FROM chef AS planner
@@ -20,17 +20,17 @@ RUN cargo chef prepare --recipe-path recipe.json
2020FROM chef AS builder
2121COPY --from=planner /app/recipe.json recipe.json
2222RUN cargo chef cook \
23- --profile dist \
24- --target $(cat /rust_target.txt) \
25- --recipe-path recipe.json
23+ --profile dist \
24+ --target $(cat /rust_target.txt) \
25+ --recipe-path recipe.json
2626COPY Cargo.toml Cargo.lock ./
2727COPY src ./src
2828RUN cargo build \
29- --profile dist \
30- --target $(cat /rust_target.txt)
29+ --profile dist \
30+ --target $(cat /rust_target.txt)
3131RUN cp target/$(cat /rust_target.txt)/dist/podlet .
3232
33- FROM scratch
33+ FROM gcr.io/distroless/static-debian12:debug-nonroot
3434LABEL org.opencontainers.image.source="https://github.com/containers/podlet"
3535LABEL org.opencontainers.image.description="Generate Podman Quadlet files from a Podman command, compose file, or existing object"
3636LABEL org.opencontainers.image.licenses="MPL-2.0"
You can’t perform that action at this time.
0 commit comments