Songlify/Dockerfile

18 lines
497 B
Docker
Raw Normal View History

FROM rust:1.55.0-bullseye as builder
# ENV RUSTFLAGS="-C target-feature=+crt-static"
WORKDIR /build
RUN apt-get update && apt-get install -y \
libssl-dev
COPY ./ /build
RUN cargo build --release
FROM gcr.io/distroless/base
COPY --from=builder /build/target/release/songlify /usr/bin/songlify
COPY --from=builder /lib/x86_64-linux-gnu/libgcc_s.so.1 /lib/x86_64-linux-gnu/
COPY --from=builder /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /usr/lib/x86_64-linux-gnu/
ENTRYPOINT /usr/bin/songlify