Songlify/Dockerfile

17 lines
467 B
Docker

FROM rust:1.55.0-alpine3.14 as builder
ENV RUSTFLAGS="-C target-feature=+crt-static"
WORKDIR /build
RUN apk add --no-cache musl-dev \
openssl-dev \
build-base
COPY ./ /build
RUN cargo build --target x86_64-unknown-linux-musl --release # --verbose && ls -lah /build/target/release/build/ && ls -lah .
FROM gcr.io/distroless/static
COPY --from=builder /build/target/x86_64-unknown-linux-musl/release/songlify /usr/bin/songlify
ENTRYPOINT /usr/bin/songlify