17 lines
354 B
Docker
17 lines
354 B
Docker
FROM debian:12-slim
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
fpc fp-units-fcl fp-units-net tzdata curl jq \
|
|
libssl3 libssl-dev cron \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY statusbot.pas .
|
|
RUN fpc statusbot.pas
|
|
|
|
COPY cronjob /etc/cron.d/discord-cron
|
|
RUN chmod 0644 /etc/cron.d/discord-cron
|
|
|
|
CMD ["cron", "-f"]
|