From 757e8bf7400a403604393581b8808741808f6556 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Tue, 27 Jan 2026 09:44:11 +0100 Subject: [PATCH] Dockerfile crontab fix --- Dockerfile | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index e1762a4..67afc1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,16 @@ -# 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 \ + libssl3 libssl-dev cron \ && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /app -COPY statusbot.pas . -# Fordítás +COPY statusbot.pas . 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 +RUN chmod 0644 /etc/cron.d/discord-cron -# Konténer mindig fusson, cron háttérben -CMD ["cron", "-f"] \ No newline at end of file +CMD ["cron", "-f"]