PHP Classes

File: deploy/dockerfile

Recommend this page to a friend!
  Classes of Nahidul Hasan   Laravel Docker Kubernetes   deploy/dockerfile   Download  
File: deploy/dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Laravel Docker Kubernetes
Run a Laravel project using Docker and Kubernetes
Author: By
Last change:
Date: 2 years ago
Size: 1,050 bytes


Class file image Download
FROM php:7.1.3-fpm RUN docker-php-ext-install pdo_mysql RUN apt-get update && apt-get install -y \ libpq-dev \ libmcrypt-dev \ curl \ && docker-php-ext-install -j$(nproc) mcrypt \ && docker-php-ext-install -j$(nproc) pdo \ && docker-php-ext-install -j$(nproc) pdo_pgsql \ && docker-php-ext-install -j$(nproc) pdo_mysql \ && docker-php-ext-install mbstring RUN apt-get install nano -y RUN apt-get install supervisor -y RUN apt-get install -y nginx && \ rm -rf /var/lib/apt/lists/* COPY . /var/www/html WORKDIR /var/www/html RUN rm /etc/nginx/sites-enabled/default COPY ./deploy/deploy.conf /etc/nginx/conf.d/default.conf RUN mv /usr/local/etc/php-fpm.d/www.conf /usr/local/etc/php-fpm.d/www.conf.backup COPY ./deploy/www.conf /usr/local/etc/php-fpm.d/www.conf RUN usermod -a -G www-data root RUN chgrp -R www-data storage RUN chown -R www-data:www-data ./storage RUN chmod -R 0777 ./storage RUN ln -s ./secret/.env .env RUN chmod +x ./deploy/run ENTRYPOINT ["./deploy/run"] EXPOSE 80