Sign inSign up

machines/la_p7

By machines

•Updated over 8 years ago

Just a ubuntu based lamp server

Image
Security
Languages & frameworks
Integration & delivery
4

4.8K

machines/la_p7 repository overview

Dockerfile:

FROM ubuntu:16.04
MAINTAINER [email protected]

RUN apt-get update -y && \
    apt-get install -y curl unzip apache2 php php-mysql php-curl libapache2-mod-php php-cli php-mcrypt php-mbstring php-ldap php-xml php-sqlite3 && \
    a2enmod rewrite && 
    rm /var/www/html/index.html && \
    echo "<?php phpinfo(); ?>" > /var/www/html/index.php && \
    apt-get -y clean && \
    rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

ADD entrypoint.sh /
ENTRYPOINT ["bash", "/entrypoint.sh"]
WORKDIR "/var/www/html"
EXPOSE 80

entrypoint.sh:

!/bin/bash
set -e

source /etc/apache2/envvars
apache2 -D FOREGROUND

exec "$@"

/etc/apache2/sites-enabled/000-default.conf:

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        <Directory "/var/www/html/">
                Order allow,deny
                Allow from all
                Allowoverride all
        </Directory>
</VirtualHost>

Tag summary

Content type

Image

Digest

Size

85.9 MB

Last updated

over 8 years ago

docker pull machines/la_p7