在Dockerfile中启动Appache Httpd Web服务器错误

时间:2019-09-16 12:34:49

标签: docker docker-compose dockerfile docker-swarm docker-machine

我是Docker的新手,我希望将Vestacp的docker镜像用于我的php网站以在云上运行,但是当我尝试从此Dockerfile本地构建docker镜像时,显示错误请有人帮我。我没有Dockerfile的编码知识。This is Error Screenshot

#This is Dockerfile Code

FROM lolhens/baseimage:latest
MAINTAINER LolHens <pierrekisters@gmail.com>

RUN apt-get update
RUN apt-get install -y \
curl
RUN cd /tmp

# First save the script locally
RUN curl -O http://vestacp.com/pub/vst-install.sh

# Make the script runnable
RUN chmod a+x ./vst-install.sh

# Disable the apt-get check for unauthenticated packages
RUN echo "APT::Get::AllowUnauthenticated \"true\";" > /etc/apt/apt.conf.d/99vesta

# Pass 'yes' automatically when asked
RUN yes | ./vst-install.sh -y no -p admin \
    nginx yes \
    apache yes \
    phpfpm no \
    vsftpd no \
    proftpd no \
    exim yes \
    dovecot yes \
    spamassassin yes \
    clamav yes \
    named yes \
    iptables no \
    fail2ban no \
    mysql no \
    postgresql yes \
    remi yes \
    quota yes \
    cleanimage

ADD dovecot /etc/init.d/dovecot
RUN chmod +x /etc/init.d/dovecot

RUN cd /usr/local/vesta/data/ips && mv * 127.0.0.1 \
 && cd /etc/apache2/conf.d && sed -i -- 's/172.*.*.*:80/127.0.0.1:80/g' * && sed -i -- 's/172.*.*.*:8443/127.0.0.1:8443/g' * \
 && cd /etc/nginx/conf.d && sed -i -- 's/172.*.*.*:80;/80;/g' * && sed -i -- 's/172.*.*.*:8080/127.0.0.1:8080/g' * \
 && cd /home/admin/conf/web && sed -i -- 's/172.*.*.*:80;/80;/g' * && sed -i -- 's/172.*.*.*:8080/127.0.0.1:8080/g' *

ADD startup.sh /etc/my_init.d/startup.sh
RUN chmod +x /etc/my_init.d/startup.sh


CMD bash


EXPOSE 80 8083 8080 3306 443 25 993 110 53 54

0 个答案:

没有答案