commit inicial

This commit is contained in:
2026-04-16 10:56:46 -03:00
commit b2a850bc22
21 changed files with 8354 additions and 0 deletions

19
Containerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM docker.io/rust:1.90 AS build
COPY . /app
WORKDIR /app
RUN git checkout main
RUN cargo build --release
# FROM docker.io/alpine:3.22.1 AS production
FROM docker.io/debian:sid AS production
COPY --from=build /app/target/release/piperun-bot /app/
COPY crontab /app/
WORKDIR /app
RUN ln -sf /bin/bash /bin/sh
RUN mkdir log
RUN chmod +x piperun-bot
RUN apt update && apt install cron -y
RUN /usr/bin/crontab crontab
CMD ["cron", "-f"]