php.Dockerfile 1010 B

123456789101112131415161718192021222324252627282930313233343536
  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. && curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - \
  23. && apt-get -y install nodejs \
  24. && rm -r /var/lib/apt/lists/* \
  25. && docker-php-ext-configure gd --with-jpeg \
  26. && docker-php-ext-install pdo_mysql gd pcntl zip
  27. # Copy application file to /var/www
  28. COPY . /var/www
  29. # Copy scupervisor file conf
  30. COPY docker/wookteam.conf /etc/supervisor/conf.d/wookteam.conf
  31. # Set the WORKDIR to /var/www so all following commands run in /var/www
  32. WORKDIR /var/www