Skip to content

Instantly share code, notes, and snippets.

@yakubenko
Created April 28, 2018 16:54
Show Gist options
  • Save yakubenko/7ad83bb56a6af5b5ce5de6954e99f178 to your computer and use it in GitHub Desktop.
Save yakubenko/7ad83bb56a6af5b5ce5de6954e99f178 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment