Docker: simple example, fast

See github link for instructions on how to run.

docker-compose.yml

version: '2'
services:
    app:
        build:
            context: ./
            dockerfile: app.docker
        ports:
            - "80:80"

app.docker

FROM silintl/ubuntu:16.04

RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
RUN apt-get update
RUN apt-get install -y apache2

WORKDIR /var/www/humankind

RUN echo " \n\
 \n\
    ServerName humankind \n\
    DocumentRoot /var/www/humankind \n\
 \n\
" >> /etc/apache2/sites-available/humankind.conf

RUN a2dissite 000-default.conf && a2ensite humankind.conf

RUN echo "Automation for the People" > /var/www/humankind/index.html

EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]

See: https://github.com/pcleddy/mini001

Comments

Popular posts from this blog

Openvpn and unbound combined break dig command

Stress Linux system: stress-ng

Google Nexus 4: permanent back panel glass repair for less than a penny