From 471e5df45c40adaf2ea54487df0cb0cca01e9259 Mon Sep 17 00:00:00 2001 From: Deon George Date: Wed, 7 Jul 2021 23:28:58 +1000 Subject: [PATCH] Add zlib and ssl to mongo --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8012905..4e7b911 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,8 +26,12 @@ EXPOSE 22/tcp RUN curl https://getcomposer.org/installer|php -- --install-dir=/usr/local/bin --filename=composer # Add Mongo DB -RUN pecl install mongodb && docker-php-ext-enable mongodb \ - && rm -rf /tmp/* +RUN apt-get update && apt-get -y install zlib1g-dev libssl-dev \ + && pecl install mongodb && docker-php-ext-enable mongodb \ + && apt-get -y purge zlib1g-dev libssl-dev \ + && apt-get -y autoremove \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* # Mysql/Postgress/LDAP RUN apt-get update && apt-get install -y openssh-server libpq5 libpq-dev unzip git libldap2-dev \