https://gitlab.com/hatiers/lstclean.git
Tip revision: fe284754af51e80d2c10a9cd09494b375f4313c0 authored by hatiers on 08 March 2019, 11:36:00 UTC
varnish WIP
varnish WIP
Tip revision: fe28475
Dockerfile
FROM ubuntu:18.04
MAINTAINER Sylvain Hatier
RUN apt-get -qqq update && DEBIAN_FRONTEND=noninteractive apt-get install -qqq -y \
apt-utils \
git \
make \
vim \
wget \
curl \
gdebi \
apache2 \
openssl \
python2.7 \
python-pip \
php7.2 \
libapache2-mod-php7.2 \
php7.2-bcmath \
php7.2-cli \
php7.2-common \
php7.2-curl \
php7.2-dev \
php7.2-fpm \
php7.2-intl \
php7.2-json \
php7.2-mbstring \
php7.2-mysql \
php7.2-opcache \
php7.2-readline \
php7.2-xml \
php7.2-zip \
php7.2-gd \
php-common \
php-imagick
# Install Composer
RUN curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer
# Install npm
RUN curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
RUN chmod +x /usr/local/bin/n
RUN n stable
RUN mkdir /var/www/public
# Configure Apache
RUN rm -rf /etc/apache2/sites-available/* && rm -rf /etc/apache2/sites-enabled/*
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
ADD ./app.conf /etc/apache2/sites-available/app.conf
RUN a2ensite app.conf
RUN a2enmod headers
RUN a2enmod deflate
RUN a2enmod rewrite
RUN a2enmod ssl
RUN service apache2 restart
RUN echo 'alias console="php bin/console"' >> ~/.bashrc
WORKDIR /var/www/
# as www-data user
RUN usermod -u 1000 www-data
EXPOSE 80
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
