laravel-laravel-s.dockerfile 869 B

1234567891011121314151617181920212223242526272829
  1. FROM phpswoole/swoole:5.1.3-php8.3
  2. RUN docker-php-ext-install pcntl opcache curl > /dev/null
  3. RUN echo "opcache.enable_cli=1" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
  4. RUN echo "opcache.jit=1205" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
  5. RUN echo "opcache.jit_buffer_size=128M" >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
  6. WORKDIR /laravel
  7. COPY --link . .
  8. RUN mkdir -p bootstrap/cache \
  9. storage/logs \
  10. storage/framework/sessions \
  11. storage/framework/views \
  12. storage/framework/cache
  13. COPY --link deploy/laravel-s/composer.json .
  14. RUN echo "LARAVELS_LISTEN_IP=0.0.0.0" >> .env
  15. RUN echo "LARAVELS_LISTEN_PORT=8080" >> .env
  16. RUN composer install -a --no-dev --quiet
  17. RUN php artisan optimize
  18. RUN php artisan laravels publish
  19. EXPOSE 8080
  20. ENTRYPOINT [ "php", "bin/laravels", "start" ]