diff --git a/Dockerfile b/Dockerfile index a386d06..f99725d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,19 +48,21 @@ FROM php-base AS php USER www-data WORKDIR /app -RUN echo d - # Install freescout +ENV FREESCOUT_COMMIT=dd2e262c511b4f80fb92b40bae30c168d55f24fb RUN git clone -b add-s3-support https://github.com/veebkolm/freescout.git /app -RUN git checkout 41e2e5d3bc3b408d002b99aef449b33bbea22b80 +RUN git checkout $FREESCOUT_COMMIT # Install oauth plugin COPY modules/OAuth /app/Modules/OAuth -# Install Composer dependencies -RUN cd /app && composer install --no-dev && composer clear-cache - # Create necessary symlink RUN php artisan storage:link +RUN touch /app/storage/logs/laravel.log + +COPY entrypoint.sh /entrypoint.sh +CMD ["/bin/bash"] +ENTRYPOINT ["/entrypoint.sh"] + EXPOSE 8080 diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..d5c5c39 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,2 @@ +#!/bin/bash +apache2-foreground & tail -f /app/storage/logs/laravel.log