Change from wget to curl

- So we don't have to install stuff

Fix chown and remove archive
This commit is contained in:
Markus Opolka
2018-01-15 14:28:33 +01:00
parent 2783803cc7
commit 5db6f11f40
2 changed files with 7 additions and 5 deletions

View File

@@ -7,7 +7,8 @@ RUN docker-php-ext-install ldap \
&& docker-php-ext-install zip \
# Download, unzip and chmod of LimeSurvey
RUN wget https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
RUN curl -L https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
tar xzf lime.tar.gz && \
mv -t /var/www/html LimeSurvey*/* && \
chmod -R /var/www/html
rm -rf LimeSurvey-* lime.tar.gz && \
chown www-data:www-data -R /var/www/html

View File

@@ -1,4 +1,4 @@
FROM php:7.2-apache
FROM php:7.2-fpm
# Install PHP Plugins
RUN docker-php-ext-install ldap \
@@ -7,7 +7,8 @@ RUN docker-php-ext-install ldap \
&& docker-php-ext-install zip \
# Download, unzip and chmod of LimeSurvey
RUN wget https://github.com/LimeSurvey/LimeSurvey/archive/3.0.0+171222.tar.gz -o lime.tar.gz && \
RUN curl -L https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
tar xzf lime.tar.gz && \
mv -t /var/www/html LimeSurvey*/* && \
chmod -R /var/www/html
rm -rf LimeSurvey-* lime.tar.gz && \
chown www-data:www-data -R /var/www/html