19 lines
354 B
Docker
19 lines
354 B
Docker
FROM docker.io/library/rust:1.73-alpine AS build
|
|
|
|
COPY . /build
|
|
|
|
WORKDIR /build
|
|
|
|
RUN --mount=type=cache,target=/var/cache \
|
|
apk add --no-cache g++ \
|
|
&& :
|
|
|
|
RUN cargo build --release --no-default-features --features rustls \
|
|
&& strip target/release/sshca-cli
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /build/target/release/sshca-cli /
|
|
|
|
ENTRYPOINT ["/sshca-cli"]
|