Added cleaning tmp AND moved ci build trigger to plus branch

Cache our builds based on branches - part 1
This commit is contained in:
Deon George
2018-01-29 13:36:35 +11:00
parent a072f6ed51
commit e31d600b09
2 changed files with 5 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ RUN echo "deb http://deb.debian.org/debian jessie non-free" >> /etc/apt/sources.
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) pdo_mysql bz2 gettext sockets gmp gd pcntl snmp exif \
&& pecl install imagick && docker-php-ext-enable imagick \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN apt-get update && apt-get install -y openssh-server && rm -rf /var/lib/apt/lists/* \
&& useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp