FROM phpswoole/swoole:4.5.2-php7.4 # Installation dependencies and PHP core extensions RUN apt-get update \ && apt-get install -y \ libpng-dev \ libzip-dev \ libzip4 \ zip \ unzip \ git \ net-tools \ iputils-ping \ npm \ vim \ supervisor \ && rm -r /var/lib/apt/lists/* \ && docker-php-ext-configure gd \ && docker-php-ext-install pdo_mysql gd pcntl zip # Copy application file to /var/www COPY . /var/www # Copy scupervisor file conf COPY docker/wookteam.conf /etc/supervisor/conf.d/wookteam.conf # Set the WORKDIR to /var/www so all following commands run in /var/www WORKDIR /var/www