Browse Source

fix cleanup

master
Cabillot Julien 2 years ago
parent
commit
99f9b6212b
1 changed files with 10 additions and 10 deletions
  1. 20
      Dockerfile

20
Dockerfile

@ -6,24 +6,24 @@ LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
COPY "./" "/var/www/mydl.cabillot.eu/"
WORKDIR "/var/www/mydl.cabillot.eu"
RUN apt-get update && \
apt-get -y install libssl-dev git unzip && \
RUN apt-get -qq update && \
apt-get -qq --yes install libssl-dev git unzip && \
pecl install mongodb && \
docker-php-ext-enable mongodb && \
groupadd -g "1007" "nginx" && \
usermod -a -G "nginx" "www-data" && \
curl "https://getcomposer.org/composer.phar" -o "composer.phar" && \
php "composer.phar" install && \
apt-get -qqy autoremove --purge libssl-dev git unzip && \
apt-get -qqy clean all && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/usr/src/*" \
"/var/cache/*" \
apt-get -qq --yes remove --purge libssl-dev git unzip && \
apt-get -qq --yes clean all && \
rm -rf "/usr/share/doc/"* \
"/var/cache/"* \
"/var/lib/apt/lists/"* \
"/usr/src/"* \
"/var/cache/"* \
"/var/log/"{apt/*,dpkg.log} \
"/var/www/html" \
"/tmp/*" && \
"/tmp/"* && \
ln -s "/var/www/mydl.cabillot.eu/root" "/var/www/html"
# TODO : ajouter les HEADER HTTPS sécurisés dans le .htaccess
Loading…
Cancel
Save