Skip to content

Instantly share code, notes, and snippets.

@yakubenko
Created April 28, 2018 16:54
Show Gist options
  • Select an option

  • Save yakubenko/7ad83bb56a6af5b5ce5de6954e99f178 to your computer and use it in GitHub Desktop.

Select an option

Save yakubenko/7ad83bb56a6af5b5ce5de6954e99f178 to your computer and use it in GitHub Desktop.

Revisions

  1. yakubenko renamed this gist Apr 28, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. yakubenko created this gist Apr 28, 2018.
    28 changes: 28 additions & 0 deletions Dockerfile.apache
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@

    FROM ubuntu:18.04

    ENV DEBIAN_FRONTEND=noninteractive

    RUN apt-get update

    RUN apt-get install -y apache2

    RUN apt-get install -y php php-common php-cli php-mysql php-curl \
    php-mbstring php-xml php-intl php-gd php-json \
    php-zip php-xdebug

    RUN a2enmod rewrite

    RUN apt-get install -y iputils-ping
    RUN apt-get install -y wget

    COPY 001-default.conf /etc/apache2/sites-available/000-default.conf
    COPY ports.conf /etc/apache2/ports.conf

    RUN mkdir /var/www/app/

    VOLUME /var/www/app

    EXPOSE 80

    CMD /usr/sbin/apache2ctl -D FOREGROUND