diff --git a/alpine/Dockerfile b/alpine/Dockerfile index b70fed9..c6aaed3 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -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"] diff --git a/alpine/entrypoint.sh b/alpine/entrypoint.sh old mode 100644 new mode 100755 index 97b0ff7..743cd84 --- a/alpine/entrypoint.sh +++ b/alpine/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e if [ ! -d /var/www/app/storage ]; then diff --git a/example/docker-compose.yml b/example/docker-compose.yml index db7f105..f643868 100644 --- a/example/docker-compose.yml +++ b/example/docker-compose.yml @@ -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 <