-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
13 lines (13 loc) · 873 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM centos:latest
RUN yum update -y && yum install epel-release -y && rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && yum --enablerepo=remi-php73 install php nginx php-fpm php-common php-opcache php-pecl-apcu php-cli php-pear php-pdo php-mysqlnd php-pgsql php-pecl-mongodb php-pecl-redis php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml composer php-composer* unzip wget -y
COPY /nginx-conf/application.conf /etc/nginx/conf.d
COPY /nginx-conf/nginx.conf /etc/nginx/nginx.conf
RUN mkdir -p /run/php-fpm && touch /run/php-fpm/php-fpm.pid
EXPOSE 8080 80 9000
RUN mkdir -p /application_1/public
COPY /code/. /application_1/public
COPY /composer/. /application_1/public
RUN cd /application_1/public && composer install
WORKDIR /application_1/public
VOLUME /application_1/public
ENTRYPOINT /sbin/nginx && php-fpm && /bin/bash