initial commit

This commit is contained in:
2026-01-24 23:30:40 +01:00
commit b098ecca9d
6 changed files with 127 additions and 0 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Dockerfile - FPC Discord bot SSL támogatással
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 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY statusbot.pas .
# Fordítás
RUN fpc statusbot.pas
# Cron telepítése
RUN apt-get update && apt-get install -y cron && apt-get clean && rm -rf /var/lib/apt/lists/*
# Cron fájl másolása
COPY cronjob /etc/cron.d/discord-cron
RUN chmod 0644 /etc/cron.d/discord-cron && crontab /etc/cron.d/discord-cron
# Konténer mindig fusson, cron háttérben
CMD ["cron", "-f"]