File: docker/nginx/Dockerfile

Recommend this page to a friend!
  Classes of Omar Shaban  >  Clean Architecture in PHP Symfony  >  docker/nginx/Dockerfile  >  Download  
File: docker/nginx/Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Clean Architecture in PHP Symfony
Symfony based application in a Docker container
Author: By
Last change:
Date: 3 months ago
Size: 726 bytes


Class file image Download
FROM centos:latest

RUN rpm --import \
        /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 \ \
    && yum install -y -q epel-release

RUN rpm --import \
    && yum install -y -q nginx
RUN mkdir /etc/nginx/sites-enabled

ADD nginx.conf /etc/nginx/
ADD symfony.conf /etc/nginx/sites-available/

RUN ln -s /etc/nginx/sites-available/symfony.conf /etc/nginx/sites-enabled/symfony

RUN echo "root:root" | chpasswd \
    && groupadd -r -g 1000 web1 \
    && useradd -r -u 1000 -d /home/web1 -m -p \$1\$abc\$z6zw.AIqtpbwKbR78LIWi0 -g web1 web1 \
    && ln -s /home/web1/bin/blz.lut2 /etc/blz.lut2

CMD ["nginx"]

For more information send a message to info at phpclasses dot org.