mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
alpine working image
This commit is contained in:
@@ -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
2
alpine/entrypoint.sh
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
if [ ! -d /var/www/app/storage ]; then
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user