Example :
docker run -d --name apache -v <your host root folder>:/var/www/html -v apache-conf:/etc/apache2 -e LANG=C.UTF-8 -p 80:80 -p 8842:22 --restart always h0perium/apache-php7-ssh
Dockerfile :
FROM ubuntu:16.04
MAINTAINER Fer Uria <[email protected]>
RUN apt-get update
RUN apt-get upgrade -y
COPY debconf.selections /tmp/
RUN debconf-set-selections /tmp/debconf.selections
RUN apt-get install -y zip unzip
RUN apt-get install -y \
php7.0 \
php7.0-bz2 \
php7.0-cgi \
php7.0-cli \
php7.0-common \
php7.0-curl \
php7.0-dev \
php7.0-enchant \
php7.0-fpm \
php7.0-gd \
php7.0-gmp \
php7.0-imap \
php7.0-interbase \
php7.0-intl \
php7.0-json \
php7.0-ldap \
php7.0-mbstring \
php7.0-mcrypt \
php7.0-mysql \
php7.0-odbc \
php7.0-opcache \
php7.0-pgsql \
php7.0-phpdbg \
php7.0-pspell \
php7.0-readline \
php7.0-recode \
php7.0-sqlite3 \
php7.0-sybase \
php7.0-tidy \
php7.0-xmlrpc \
php7.0-xsl \
php7.0-zip
RUN apt-get install apache2 libapache2-mod-php7.0 -y
RUN apt-get install postfix openssl openssh-server -y
RUN apt-get update
RUN apt-get install git nano tree vim curl ftp -y
ENV LOG_STDOUT **Boolean**
ENV LOG_STDERR **Boolean**
ENV LOG_LEVEL warn
ENV ALLOW_OVERRIDE All
ENV DATE_TIMEZONE UTC
ENV TERM dumb
COPY index.php /var/www/html/
COPY run-lamp.sh /usr/sbin/
RUN a2enmod rewrite
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN chmod +x /usr/sbin/run-lamp.sh
RUN chown -R www-data:www-data /var/www/html
#VOLUME /var/www/html
#VOLUME /var/log/httpd
#VOLUME /var/lib/mysql
#VOLUME /var/log/mysql
#VOLUME /etc/apache2
CMD ["/usr/sbin/run-lamp.sh"]
Content type
Image
Digest
Size
236.1 MB
Last updated
over 4 years ago
docker pull h0perium/apache-php7-ssh