24 lines
430 B
Docker
24 lines
430 B
Docker
FROM rust:bullseye AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN cargo build --release --bin telegram-twitch-notifier
|
|
|
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y openssl ca-certificates curl jq \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN update-ca-certificates
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/target/release/telegram-twitch-notifier /usr/local/bin
|
|
|
|
CMD ["/usr/local/bin/telegram-twitch-notifier"]
|