2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-12-07 13:57:07 +01:00

Execute cron as www-data

This commit is contained in:
Philipp Holzer 2021-09-03 21:13:29 +02:00
commit ee990e4837
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
27 changed files with 198 additions and 130 deletions

View file

@ -10,22 +10,14 @@ RUN set -ex; \
git \
# For mail() support
msmtp \
# For tini installation
gnupg dirmngr \
tini \
# For setuid/setgid support
gosu \
; \
# Verify that the binary works
gosu nobody true; \
rm -rf /var/lib/apt/lists/*;
# Add tini for reaping processes
ENV TINI_VERSION v%%TINI_VERSION%%
RUN export BUILD_ARCH=$(dpkg-architecture --query DEB_BUILD_ARCH) \
&& mkdir ~/.gnupg \
&& echo "disable-ipv6" >> ~/.gnupg/dirmngr.conf \
&& curl -L -o /sbin/tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${BUILD_ARCH} \
&& curl -L -o /tini.asc https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${BUILD_ARCH}.asc \
&& gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 595E85A6B1B4779EA4DAAEC70B588DFF0527A9B7 \
&& gpg --batch --verify /tini.asc /sbin/tini \
&& chmod +x /sbin/tini
# install the PHP extensions we need
# see https://friendi.ca/resources/requirements/
RUN set -ex; \