2
1
Fork 0
mirror of https://github.com/friendica/docker synced 2026-04-11 23:56:41 +02:00

Fixed cron.sh & update

- restored script `friendica` for update & wrapper purpose
- fixed `cron.sh`
This commit is contained in:
Philipp Holzer 2018-05-21 21:32:26 +02:00
commit 1362cc34ca
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
25 changed files with 1387 additions and 662 deletions

View file

@ -11,15 +11,11 @@ RUN set -ex; \
apt-get install -y --no-install-recommends \
rsync \
bzip2 \
busybox-static \
git \
# For mail() support
sendmail \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/10 * * * * cd /var/www/html && php -f bin/worker.php' > /var/spool/cron/crontabs/www-data
rm -rf /var/lib/apt/lists/*;
# install the PHP extensions we need
# see https://friendi.ca/resources/requirements/
@ -102,9 +98,11 @@ RUN {\
ENV FRIENDICA_VERSION develop
ENV ADDONS_VERSION develop
COPY bin/* /usr/local/bin/
COPY config/* /usr/src/config/
COPY *.sh /
RUN chmod +x /*.sh
RUN chmod +x /usr/local/bin/*
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]