forked from third-party-mirrors/bliss-analyser
Add custom Dockerfile
This commit is contained in:
parent
079991b9e0
commit
f514893de3
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"]
|
Loading…
x
Reference in New Issue
Block a user