19 lines
337 B
Docker
19 lines
337 B
Docker
FROM rust:buster as builder
|
|
|
|
RUN rustup default nightly
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
|
|
RUN cargo build --release
|
|
|
|
FROM debian:buster
|
|
|
|
RUN apt-get update && apt-get upgrade -y
|
|
RUN apt-get install -y ca-certificates openssl mkvtoolnix sqlite3 ffmpeg
|
|
|
|
COPY --from=builder /app/target/release/watchdogs /watchdogs
|
|
|
|
WORKDIR /
|
|
|
|
CMD ["/watchdogs"]
|