Compare commits

...

2 Commits

Author SHA1 Message Date
f514893de3 Add custom Dockerfile 2023-11-07 22:31:30 +03:00
079991b9e0 disable ignore mechanism 2023-11-07 22:30:50 +03:00
2 changed files with 14 additions and 1 deletions

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM docker.io/rust:1-slim-bookworm as builder
RUN apt update && apt install -y clang libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev libavdevice-dev pkg-config
WORKDIR /app
COPY . .
RUN cargo build --release
FROM docker.io/debian:12-slim
RUN apt update && apt install -y --no-install-recommends libavutil57 libavcodec59 libavformat59 libavfilter8 libavdevice59 && apt clean
COPY --from=builder /app/target/release/bliss-analyser /bin/bliss-analyser
RUN chmod 755 /bin/bliss-analyser && mkdir /data && chown 1000:1000 /data
USER 1000
ENTRYPOINT ["/bin/bliss-analyser"]

View File

@ -175,7 +175,8 @@ fn main() {
log::error!("Ignore file ({}) is not a file", ignore_file);
process::exit(-1);
}
analyse::update_ignore(&db_path, &ignore_path);
// analyse::update_ignore(&db_path, &ignore_path); // Ignore is done on postgres's
// side
} else {
analyse::analyse_files(&db_path, &music_paths, dry_run, keep_old, max_num_files, max_threads);
}