Files
ohrwurm/Dockerfile
Renovate Bot f4f6a486c9
Some checks are pending
tests / fmt (push) Waiting to run
tests / build (push) Waiting to run
tests / test (push) Waiting to run
tests / clippy (push) Waiting to run
tests / pre-commit (push) Waiting to run
deploy / release-image (push) Waiting to run
renovate / renovate (push) Waiting to run
Update debian:bullseye-slim Docker digest to e4b93db
2025-03-21 00:01:10 +00:00

29 lines
771 B
Docker

# Build image
FROM rust:slim-bullseye@sha256:1eca9af45f393ac4669b9b63659529638359575f6268cbd4e6543ddc46c53803 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"]