forked from jelson.rodrigues/piperun-bot
18 lines
414 B
Docker
18 lines
414 B
Docker
FROM docker.io/rust:1.90 AS build
|
|
COPY . /app
|
|
WORKDIR /app
|
|
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"] |