diff --git a/simplerisk-minimal/generate_dockerfile.sh b/simplerisk-minimal/generate_dockerfile.sh index 5ed2de3..833766b 100755 --- a/simplerisk-minimal/generate_dockerfile.sh +++ b/simplerisk-minimal/generate_dockerfile.sh @@ -22,6 +22,12 @@ FROM php:$image-apache LABEL maintainer="Simplerisk " WORKDIR /var/www + +# Add the apt config package +RUN apt-get update && \ + apt-get install -y gnupg2 && \ + apt-key adv --keyserver pgp.mit.edu --recv-keys A8D3785C && \ + echo "deb http://repo.mysql.com/apt/debian bookworm mysql-8.0" > /etc/apt/sources.list.d/mysql.list # Installing apt dependencies RUN apt-get update && \\ @@ -33,7 +39,7 @@ RUN apt-get update && \\ libzip-dev \\ supervisor \\ cron \\ - default-mysql-client && \\ + mysql-community-client && \\ rm -rf /var/lib/apt/lists/* # Configure all PHP extensions RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && \\ diff --git a/simplerisk-minimal/php81/Dockerfile b/simplerisk-minimal/php81/Dockerfile index 55ef408..69be088 100644 --- a/simplerisk-minimal/php81/Dockerfile +++ b/simplerisk-minimal/php81/Dockerfile @@ -6,6 +6,12 @@ FROM php:8.1-apache LABEL maintainer="Simplerisk " WORKDIR /var/www + +# Add the apt config package +RUN apt-get update && \ + apt-get install -y gnupg2 && \ + apt-key adv --keyserver pgp.mit.edu --recv-keys A8D3785C && \ + echo "deb http://repo.mysql.com/apt/debian bookworm mysql-8.0" > /etc/apt/sources.list.d/mysql.list # Installing apt dependencies RUN apt-get update && \ @@ -17,7 +23,7 @@ RUN apt-get update && \ libzip-dev \ supervisor \ cron \ - default-mysql-client && \ + mysql-community-client && \ rm -rf /var/lib/apt/lists/* # Configure all PHP extensions RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && \ diff --git a/simplerisk-minimal/php83/Dockerfile b/simplerisk-minimal/php83/Dockerfile index 2bffb39..7c81154 100644 --- a/simplerisk-minimal/php83/Dockerfile +++ b/simplerisk-minimal/php83/Dockerfile @@ -6,6 +6,12 @@ FROM php:8.3-apache LABEL maintainer="Simplerisk " WORKDIR /var/www + +# Add the apt config package +RUN apt-get update && \ + apt-get install -y gnupg2 && \ + apt-key adv --keyserver pgp.mit.edu --recv-keys A8D3785C && \ + echo "deb http://repo.mysql.com/apt/debian bookworm mysql-8.0" > /etc/apt/sources.list.d/mysql.list # Installing apt dependencies RUN apt-get update && \ @@ -17,7 +23,7 @@ RUN apt-get update && \ libzip-dev \ supervisor \ cron \ - default-mysql-client && \ + mysql-community-client && \ rm -rf /var/lib/apt/lists/* # Configure all PHP extensions RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu && \