Commit 0e4b8068 authored by zauberstuhl's avatar zauberstuhl
Browse files

Add friendica image to repository

parent 20826307
Pipeline #2320 canceled with stages
in 58 seconds
FROM friendica/server:latest
ADD start.sh /start.sh
RUN chmod +x /start.sh
ENTRYPOINT ["/start.sh"]
CMD ["apache2-foreground"]
#!/bin/sh
export MYSQL_HOST=$DATABASE
sed -i "s/80/$PORT/" /etc/apache2/sites-available/000-default.conf
sed -i "s/80/$PORT/" /etc/apache2/ports.conf
if [ "$PROJECT" == "friendica" ]; then
rm -fr /usr/src/friendica \
&& git clone -q $PRREPO /usr/src/friendica \
&& git checkout $PRSHA && git log -1 || {
echo "Cannot pull from repo=$PRREPO sha=$PRSHA"
exit 1
}
fi
# exec normal entrypoint
sh /entrypoint.sh $@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment