This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,17 @@ ENV LOCALE9="pt_PT.UTF-8"
11
11
ENV LOCALE10="ru_RU.UTF-8"
12
12
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
13
13
RUN apt-get update \
14
- && apt-get install -y curl gettext git libxml2 libxml2-dev locales tzdata \
14
+ && apt-get install -y cron curl gettext git libxml2 libxml2-dev locales tzdata \
15
15
&& apt-get clean -y \
16
16
&& docker-php-ext-install gettext mysqli pdo pdo_mysql simplexml
17
17
RUN cp /usr/share/zoneinfo/America/Vancouver /etc/localtime \
18
18
&& echo "America/Vancouver" > /etc/timezone
19
19
COPY php.ini-production /usr/local/etc/php/php.ini
20
+ COPY cron /etc/cron.d/cron
21
+ RUN chmod 0644 /etc/cron.d/cron
22
+ RUN crontab /etc/cron.d/cron
23
+ RUN mkdir -p /var/log/cron
24
+ RUN sed -i 's/^exec /service cron start\n\n exec /' /usr/local/bin/apache2-foreground
20
25
RUN sed -i -e "s/# $LOCALE1/$LOCALE1/" /etc/locale.gen
21
26
RUN sed -i -e "s/# $LOCALE2/$LOCALE2/" /etc/locale.gen
22
27
RUN sed -i -e "s/# $LOCALE3/$LOCALE3/" /etc/locale.gen
Original file line number Diff line number Diff line change
1
+ */10 * * * * www-data /usr/local/bin/php -q /var/www/html/cron.php > /dev/null
You can’t perform that action at this time.
0 commit comments