17 lines
376 B
Docker
17 lines
376 B
Docker
FROM php:8.2-cli
|
|
|
|
ENV TZ=Europe/Warsaw
|
|
|
|
COPY --chown=www-data ./project /var/www/html
|
|
|
|
#cron
|
|
RUN apt-get update && apt-get -y install cron
|
|
RUN apt-get install -y --no-install-recommends dnsutils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY ./service/crontab /etc/cron.d/maincron
|
|
RUN chmod 0644 /etc/cron.d/maincron
|
|
RUN crontab /etc/cron.d/maincron
|
|
RUN touch /var/log/cron.log
|
|
|