laravel-laravel-s.dockerfile 1.0 KB

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