forked from third-party-mirrors/bliss-analyser
Compare commits
2 Commits
04baedbfc2
...
f514893de3
Author | SHA1 | Date | |
---|---|---|---|
f514893de3 | |||
079991b9e0 |
12
Dockerfile
Normal file
12
Dockerfile
Normal 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"]
|
@ -175,7 +175,8 @@ fn main() {
|
|||||||
log::error!("Ignore file ({}) is not a file", ignore_file);
|
log::error!("Ignore file ({}) is not a file", ignore_file);
|
||||||
process::exit(-1);
|
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 {
|
} else {
|
||||||
analyse::analyse_files(&db_path, &music_paths, dry_run, keep_old, max_num_files, max_threads);
|
analyse::analyse_files(&db_path, &music_paths, dry_run, keep_old, max_num_files, max_threads);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user