1 2 3 4 5 6 7 8 9 10
FROM rust:1.75 AS build ARG CARGO_FLAGS="--all-features --release" WORKDIR /app COPY . ./ RUN cargo build ${CARGO_FLAGS} FROM gcr.io/distroless/cc COPY --from=build /app/target/release/stylua / CMD ["./stylua"]