Setup CI/CD
This commit is contained in:
23
docker/Dockerfile
Normal file
23
docker/Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user