2022-03-18 11:02:11 +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 \
|
2022-03-18 11:06:40 +01:00
|
|
|
libssl-dev=1.1.1k-1+deb11u2 \
|
2021-11-15 10:03:23 +01:00
|
|
|
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"]
|