Setup CI/CD

This commit is contained in:
2025-02-27 23:29:02 +01:00
parent 6339336135
commit f6df6c7c56
6 changed files with 132 additions and 38 deletions

23
docker/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
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"]