mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-04-19 00:45:16 +00:00
17 lines
370 B
Plaintext
17 lines
370 B
Plaintext
|
FROM ubuntu:latest
|
||
|
|
||
|
# Instalar cron
|
||
|
RUN apt-get update && apt-get install -y cron curl
|
||
|
|
||
|
# Adicionar seus scripts de cron
|
||
|
COPY cron_tasks /etc/cron.d/cron_tasks
|
||
|
|
||
|
# Dar permissões apropriadas
|
||
|
RUN chmod 0644 /etc/cron.d/cron_tasks
|
||
|
|
||
|
# Criar um arquivo de log para armazenar os resultados do cron
|
||
|
RUN touch /var/log/cron.log
|
||
|
|
||
|
# Executar o cron em primeiro plano
|
||
|
CMD cron -f
|