2022-03-11 14:31:43 +01:00
|
|
|
FROM rust:1.59.0-slim-bullseye as builder
|
2021-09-22 12:37:48 +02:00
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
2021-11-15 10:03:23 +01:00
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
libssl-dev=1.1.1k-1+deb11u1 \
|
|
|
|
pkg-config=0.29.2-1
|
2021-09-22 12:37:48 +02:00
|
|
|
|
|
|
|
COPY ./ /build
|
|
|
|
RUN cargo build --release
|
|
|
|
|
2021-11-15 10:03:23 +01:00
|
|
|
FROM gcr.io/distroless/base:latest-amd64
|
2021-09-22 12:37:48 +02:00
|
|
|
|
|
|
|
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/
|
|
|
|
|
2021-11-15 10:03:23 +01:00
|
|
|
ENTRYPOINT ["/usr/bin/songlify"]
|