cinderwatch 0.1.0
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
2026-06-03 21:38:26 +01:00
commit f03e47d9f5
13 changed files with 3775 additions and 0 deletions

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM rust:1.96.0-slim-trixie AS chef
RUN apt-get update && apt-get install -y pkg-config libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
RUN cargo install cargo-chef --locked
WORKDIR /app
FROM chef AS planner
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder
COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --locked --recipe-path recipe.json
COPY . .
RUN cargo build --release --locked
FROM debian:trixie-slim
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /app/target/release/cinderwatch /usr/local/bin/
RUN mkdir /data
VOLUME /data
ENV DISCORD_TOKEN=
ENV DB_PATH=/data/bot.db
WORKDIR /app
CMD ["cinderwatch"]