25 lines
670 B
Docker
25 lines
670 B
Docker
FROM t0is/laravel-roadrunner-base:latest-amd64
|
|
|
|
RUN apt update -y && apt upgrade -y
|
|
RUN apt-get install -y supervisor
|
|
RUN docker-php-ext-enable redis
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
COPY src/. /var/www/html
|
|
COPY src/.env /var/www/html/.env
|
|
COPY docker/roadrunner.yaml /var/www/html/.rr.yaml
|
|
COPY docker/supervisor/horizon.conf /etc/supervisor/conf.d/horizon.conf
|
|
|
|
|
|
ENV COMPOSER_HOME=/tmp/composer
|
|
RUN composer install --optimize-autoloader --no-dev
|
|
RUN #chown -R www-data:www-data /var/www/html/vendor
|
|
|
|
RUN #php artisan optimize:clear && php artisan optimize
|
|
|
|
RUN php artisan octane:install --server=roadrunner
|
|
|
|
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/horizon.conf"]
|