mirror of https://github.com/MISP/misp-docker
Update to Ubuntu "focal" 20.04 LTS
The "bionic" distro is older and includes a version of PHP (7.2) that is older than what MISP recommends (>=7.4). Additionally, "bionic" is supposed to be EOL later this year, so updating the project to keep current. Necessary changes to PHP & libpoppler versions. Signed-off-by: Coleman Kane <ckane@colemankane.org>
parent
f85912450a
commit
33421a53e3
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
FROM ubuntu:bionic
|
FROM ubuntu:focal
|
||||||
|
|
||||||
# Install core components
|
# Install core components
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
@ -19,7 +19,8 @@ RUN apt-get install -y apache2 apache2-doc apache2-utils && \
|
||||||
a2dismod status && \
|
a2dismod status && \
|
||||||
a2dissite 000-default
|
a2dissite 000-default
|
||||||
|
|
||||||
# PHP 7.2 and install MySQL PDO extension
|
# PHP 7.4 and install MySQL PDO extension
|
||||||
|
RUN apt-get update
|
||||||
RUN apt-get install -y libapache2-mod-php php php-dev php-json \
|
RUN apt-get install -y libapache2-mod-php php php-dev php-json \
|
||||||
php-mysql php-redis php-xml php-mbstring \
|
php-mysql php-redis php-xml php-mbstring \
|
||||||
php-gd php-pear php-opcache \
|
php-gd php-pear php-opcache \
|
||||||
|
@ -31,7 +32,7 @@ RUN sed -i \
|
||||||
-e "s/memory_limit = 128M/memory_limit = 2048M/" \
|
-e "s/memory_limit = 128M/memory_limit = 2048M/" \
|
||||||
-e "s/upload_max_filesize = 2M/upload_max_filesize = 50M/" \
|
-e "s/upload_max_filesize = 2M/upload_max_filesize = 50M/" \
|
||||||
-e "s/post_max_size = 8M/post_max_size = 50M/" \
|
-e "s/post_max_size = 8M/post_max_size = 50M/" \
|
||||||
/etc/php/7.2/apache2/php.ini
|
/etc/php/7.4/apache2/php.ini
|
||||||
|
|
||||||
RUN apt-get install -y python3-dev python3-pip python3-setuptools \
|
RUN apt-get install -y python3-dev python3-pip python3-setuptools \
|
||||||
python3-lxml libjpeg-dev \
|
python3-lxml libjpeg-dev \
|
||||||
|
@ -133,7 +134,7 @@ RUN rm -rf misp-objects && git clone https://github.com/MISP/misp-objects.git &&
|
||||||
chown -R www-data:www-data misp-objects misp-galaxy warninglists taxonomies
|
chown -R www-data:www-data misp-objects misp-galaxy warninglists taxonomies
|
||||||
|
|
||||||
# Install MISP build requirements
|
# Install MISP build requirements
|
||||||
RUN sudo -E apt-get -y install libpoppler73 libpoppler-dev libpoppler-cpp-dev
|
RUN sudo -E apt-get -y install libpoppler97 libpoppler-dev libpoppler-cpp-dev
|
||||||
|
|
||||||
# Install MISP Modules
|
# Install MISP Modules
|
||||||
WORKDIR /opt
|
WORKDIR /opt
|
||||||
|
|
Loading…
Reference in New Issue