alpine working image

This commit is contained in:
Sam
2017-03-13 16:58:35 +01:00
parent fae767223f
commit 81075f2595
3 changed files with 21 additions and 21 deletions

View File

@@ -74,8 +74,8 @@ VOLUME /var/www/app/public
WORKDIR /var/www/app
COPY entrypoint.sh /usr/local/bin/
# RUN chmod +x /invoice-entrypoint
COPY entrypoint.sh /usr/local/bin/invoice-entrypoint
# RUN chmod +x /usr/local/bin/invoice-entrypoint
ENTRYPOINT ["entrypoint.sh"]
ENTRYPOINT ["invoice-entrypoint"]
CMD ["php-fpm"]

2
alpine/entrypoint.sh Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -e
if [ ! -d /var/www/app/storage ]; then

View File

@@ -24,20 +24,20 @@ services:
ports:
- 8000:80
cron:
image: invoiceninja/invoiceninja
links:
- db:mysql
env_file: .env
volumes_from:
- app
entrypoint: |
bash -c 'bash -s <<EOF
trap "break;exit" SIGHUP SIGINT SIGTERM
sleep 300s
while /bin/true; do
/usr/local/bin/php /var/www/app/artisan ninja:send-invoices
/usr/local/bin/php /var/www/app/artisan ninja:send-reminders
sleep 1d
done
EOF'
# cron:
# image: invoiceninja/invoiceninja
# links:
# - db:mysql
# env_file: .env
# volumes_from:
# - app
# entrypoint: |
# bash -c 'bash -s <<EOF
# trap "break;exit" SIGHUP SIGINT SIGTERM
# sleep 300s
# while /bin/true; do
# /usr/local/bin/php /var/www/app/artisan ninja:send-invoices
# /usr/local/bin/php /var/www/app/artisan ninja:send-reminders
# sleep 1d
# done
# EOF'