feat: improve formatting output * duration is now in human readable format * list of artists is now capped at 140 chars max chore(docker): upgrade Docker image and lint it chore(spotify): refactor spotify wrapper & function names feat(spotify): add playlist support, add pre-commit checks fix: set right visibility in structs & fields - Cleanup old imports feat: add support for album links - perform little code refactor, create new module spotify Co-authored-by: Davide Polonio <poloniodavide@gmail.com> Reviewed-on: #1
19 lines
539 B
Docker
19 lines
539 B
Docker
FROM rust:1.56.1-slim-bullseye as builder
|
|
|
|
WORKDIR /build
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libssl-dev=1.1.1k-1+deb11u1 \
|
|
pkg-config=0.29.2-1
|
|
|
|
COPY ./ /build
|
|
RUN cargo build --release
|
|
|
|
FROM gcr.io/distroless/base:latest-amd64
|
|
|
|
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"]
|