php.Dockerfile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. FROM phpswoole/swoole:4.5.2-php7.4
  2. # Installation dependencies and PHP core extensions
  3. RUN apt-get update \
  4. && apt-get -y install --no-install-recommends --assume-yes \
  5. libpng-dev \
  6. libzip-dev \
  7. libzip4 \
  8. zip \
  9. unzip \
  10. git \
  11. net-tools \
  12. iputils-ping \
  13. vim \
  14. supervisor \
  15. sudo \
  16. curl \
  17. dirmngr \
  18. apt-transport-https \
  19. lsb-release \
  20. ca-certificates \
  21. libjpeg-dev \
  22. libfreetype6-dev \
  23. && curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
  24. && apt-get -y install nodejs \
  25. && rm -r /var/lib/apt/lists/* \
  26. && docker-php-ext-configure gd --with-freetype --with-jpeg \
  27. && docker-php-ext-install pdo_mysql gd pcntl zip
  28. # Copy application file to /var/www
  29. COPY . /var/www
  30. # Copy scupervisor file conf
  31. COPY docker/wookteam.conf /etc/supervisor/conf.d/wookteam.conf
  32. # Set the WORKDIR to /var/www so all following commands run in /var/www
  33. WORKDIR /var/www