Browse Source

simplification

master
root 3 years ago
parent
commit
54e638e3a9
1 changed files with 6 additions and 6 deletions
  1. 12
      Dockerfile

12
Dockerfile

@ -1,11 +1,9 @@
FROM "php:7.1-apache"
WORKDIR "/var/www"
COPY "./" "/var/www/mydl.cabillot.eu/"
WORKDIR "/var/www/mydl.cabillot.eu"
RUN rm -rf "/var/www/html" && \
sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
sed -i'' 's/^<VirtualHost \*:80>$/<VirtualHost *:8080>/' '/etc/apache2/sites-enabled/000-default.conf' && \
apt-get update >/dev/null && \
apt-get -y install libssl-dev git unzip && \
@ -13,13 +11,15 @@ RUN rm -rf "/var/www/html" && \
docker-php-ext-enable mongodb && \
apt-get -y autoremove --purge && \
apt-get -y clean all && \
rm -rf "/var/lib/apt/lists/*" && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/var/www/html"
groupadd -g "1007" "nginx" && \
usermod -a -G "nginx" "www-data" && \
rm -rf "/var/www/html" && \
ln -s "/var/www/mydl.cabillot.eu/root" "/var/www/html" && \
curl "https://getcomposer.org/composer.phar" -o "composer.phar" && \
php composer.phar install && \
php "composer.phar" install && \
a2enmod rewrite
USER "www-data"

Loading…
Cancel
Save