Files
ohrwurm/Dockerfile
Renovate Bot f24f72a64e
Some checks failed
tests / fmt (push) Successful in 39s
tests / clippy (push) Failing after 1m6s
tests / test (push) Successful in 1m18s
tests / pre-commit (push) Successful in 1m28s
tests / build (push) Successful in 2m21s
Update rust:slim-bullseye Docker digest to 405e5b0
2025-04-09 00:01:05 +00:00

29 lines
771 B
Docker

# Build image
FROM rust:slim-bullseye@sha256:405e5b0fe9f74098d19f3a7b65368c9cd4323758dd6b2d6305a35df8d2cc0a2a as build
RUN apt-get update && apt-get install -y \
build-essential autoconf automake cmake libtool libssl-dev pkg-config
WORKDIR "/app"
# Cache dependencies
COPY Cargo.toml Cargo.lock .
RUN mkdir src \
&& echo 'fn main() { panic!("Dummy function called!"); }' > ./src/main.rs
RUN cargo build --release --locked
# Build
COPY . .
RUN touch src/main.rs
RUN cargo build --release --locked
# Release image
FROM debian:bullseye-slim@sha256:e4b93db6aad977a95aa103917f3de8a2b16ead91cf255c3ccdb300c5d20f3015
RUN apt-get update && apt-get install -y python3-pip
RUN pip install -U yt-dlp
COPY --from=build /app/target/release/ohrwurm .
CMD ["./ohrwurm"]