Dockerfile

FROM sshd:dockerfile


MAINTAINER fwc


ENV DEBIAN_FRONTEND noninteractive


RUN apt-get -yq install apache2 &&\

rm -rf /var/lib/apt/lists/*


RUN echo "Asia/Shanghai" > /etc/timezone && \

        dpkg-reconfigure -f  noninteractive tzdata


ADD run.sh /run.sh

RUN chmod 755 /*.sh


RUN mkdir -p /var/lock/apacje2 &&mkdir -p /app &&  rm -fr /var/www/htnl && \

 ln -s /app /var/www/html


COPY sample/ /app



ENV APACHE_RUN_USER www-data

ENV APACHE_RUN_GROUP www-data

ENV APACHE_LOG_DIR /var/log/apache2

ENV APACHE_PID_FILE /var/run/apache2.pid

ENV APACHE_RUN_DIR /var/run/apache2

ENV APACHE_LOCK_DIR /var/lock/apache2

ENV APACHE_SERVERADMIN admin@localhost

ENV APACHE_SERVERNAME localhost

ENV APACHE_SERVERALIAS docker.localhost

ENV APACHE_DOCUMENTROOT /var/www


EXPOSE 80

WORKDIR /app

CMD ["/run.sh"]


你可能感兴趣的:(Shanghai)