FROM alpine:edge AS build RUN apk -U upgrade --no-cache && apk add --no-cache cargo cargo-auditable openssl-dev RUN mkdir /app WORKDIR /app COPY Cargo.toml Cargo.lock ./ COPY src src COPY core core RUN cargo fetch --locked --target="$(gcc -dumpmachine)" && \ cargo auditable build --release --frozen FROM alpine:edge RUN apk -U upgrade --no-cache && apk add --no-cache libgcc libssl3 COPY --from=build /app/target/release/frenring . CMD ["/frenring"]