FROM docker.io/library/rust:alpine AS builder WORKDIR /app RUN apk update && apk add libc-dev COPY src src COPY tests tests COPY Cargo.toml Cargo.toml COPY Cargo.lock Cargo.lock RUN cargo build --release FROM docker.io/library/alpine:latest COPY --from=builder /app/target/release/felicia /usr/local/bin/felicia ENTRYPOINT ["/usr/local/bin/felicia"]