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>
Coleman Kane 2021-03-07 12:49:14 -05:00
parent f85912450a
commit 33421a53e3
1 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,5 @@
FROM ubuntu:bionic
FROM ubuntu:focal
# Install core components
ENV DEBIAN_FRONTEND noninteractive
@ -19,7 +19,8 @@ RUN apt-get install -y apache2 apache2-doc apache2-utils && \
a2dismod status && \
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 \
php-mysql php-redis php-xml php-mbstring \
php-gd php-pear php-opcache \
@ -31,7 +32,7 @@ RUN sed -i \
-e "s/memory_limit = 128M/memory_limit = 2048M/" \
-e "s/upload_max_filesize = 2M/upload_max_filesize = 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 \
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
# 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
WORKDIR /opt