You have syntax errors in your Dockerfile
. You can't put commands across multiple lines in a Dockerfile
without escaping the end-of-line. That is, you can't write this:
RUN
yum -y install nginx-1.12.2 openssl --enablerepo=nginx &&
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
But you can write this:
RUN yum -y install nginx-1.12.2 openssl --enablerepo=nginx && yum -y install https://centos7.iuscommunity.org/ius-release.rpm
Or you can write this:
RUN \
yum -y install nginx-1.12.2 openssl --enablerepo=nginx && \
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
Here, we use the \
character to escape the end-of-line, allowing us to spread a command across multiple physical lines in our Dockerfile
.
So your first RUN
command should probably look like:
RUN \
yum -y install nginx-1.12.2 openssl --enablerepo=nginx && \
yum -y install https://centos7.iuscommunity.org/ius-release.rpm && \
yum -y install https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/ius-release -1.0-14.ius.centos7.noarch.rpm && \
yum -y install \
php71u-fpm \
php71u-cli \
php71u-mysqlnd \
php71u-soap \
php71u-xml \
php71u-zip \
php71u-json \
php71u-mcrypt \
php71u-mbstring \
php71u-zip \
php71u-gd \
--enablerepo=ius && yum clean all