mirror of https://github.com/MISP/misp-docker
Fix broken web/Dockerfile && web/run.sh (#25)
Fix broken web/Dockerfile && web/run.sh
commit
6392f82ec8
|
@ -76,18 +76,12 @@ WORKDIR /var/www/MISP/app
|
||||||
|
|
||||||
# FIX COMPOSER
|
# FIX COMPOSER
|
||||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9');"
|
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
||||||
RUN php composer-setup.php
|
RUN php composer-setup.php
|
||||||
RUN php -r "unlink('composer-setup.php');"
|
RUN php -r "unlink('composer-setup.php');"
|
||||||
# END FIX
|
# END FIX
|
||||||
|
|
||||||
RUN php composer.phar config vendor-dir Vendor
|
RUN php composer.phar config vendor-dir Vendor
|
||||||
|
|
||||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
||||||
RUN php -r "if (hash_file('sha384', 'composer-setup.php') === '48e3236262b34d30969dca3c37281b3b4bbe3221bda826ac6a9a62d6444cdb0dcd0615698a5cbe587c3f0fe57a54d8f5') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
||||||
RUN php composer-setup.php
|
|
||||||
RUN php -r "unlink('composer-setup.php');"
|
|
||||||
|
|
||||||
RUN php composer.phar install --ignore-platform-reqs
|
RUN php composer.phar install --ignore-platform-reqs
|
||||||
USER root
|
USER root
|
||||||
RUN phpenmod redis
|
RUN phpenmod redis
|
||||||
|
|
|
@ -122,7 +122,7 @@ Passphrase: $MISP_ADMIN_PASSPHRASE
|
||||||
GPGEOF
|
GPGEOF
|
||||||
sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --gen-key --batch /tmp/gpg.tmp >>/tmp/install.log
|
sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --gen-key --batch /tmp/gpg.tmp >>/tmp/install.log
|
||||||
rm -f /tmp/gpg.tmp
|
rm -f /tmp/gpg.tmp
|
||||||
sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --export --armor $MISP_ADMIN_EMAIL > /var/www/MISP/app/webroot/gpg.asc"
|
sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --export --armor $MISP_ADMIN_EMAIL > /var/www/MISP/app/webroot/gpg.asc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display tips
|
# Display tips
|
||||||
|
|
Loading…
Reference in New Issue