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