Skip to content

Commit 2433924

Browse files
authored
Merge pull request laradock#122 from LaraDock/Hotfix/mongo
Hotfix/mongo
2 parents 1af9dc5 + 72a8fc0 commit 2433924

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

php-fpm/Dockerfile-55

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ RUN apt-get update && apt-get install -y \
1111
curl \
1212
libpng12-dev \
1313
libfreetype6-dev \
14+
libssl-dev \
1415
libmcrypt-dev \
1516
--no-install-recommends \
1617
&& rm -r /var/lib/apt/lists/*
1718

1819
# install mcrypt library
1920
RUN docker-php-ext-install mcrypt
2021

22+
# Install mongodb driver
23+
RUN pecl install mongodb
24+
2125
# configure gd library
2226
RUN docker-php-ext-configure gd \
2327
--enable-gd-native-ttf \
@@ -37,9 +41,6 @@ RUN pecl install memcached \
3741
RUN pecl install xdebug \
3842
&& docker-php-ext-enable xdebug
3943

40-
# Install mongodb driver
41-
RUN pecl install mongodb
42-
4344
RUN usermod -u 1000 www-data
4445

4546
WORKDIR /var/www/laravel

php-fpm/Dockerfile-56

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ RUN apt-get update && apt-get install -y \
1111
curl \
1212
libpng12-dev \
1313
libfreetype6-dev \
14+
libssl-dev \
1415
libmcrypt-dev \
1516
--no-install-recommends \
1617
&& rm -r /var/lib/apt/lists/*
1718

1819
# install mcrypt library
1920
RUN docker-php-ext-install mcrypt
2021

22+
# Install mongodb driver
23+
RUN pecl install mongodb
24+
2125
# configure gd library
2226
RUN docker-php-ext-configure gd \
2327
--enable-gd-native-ttf \
@@ -37,9 +41,6 @@ RUN pecl install memcached \
3741
RUN pecl install xdebug \
3842
&& docker-php-ext-enable xdebug
3943

40-
# Install mongodb driver
41-
RUN pecl install mongodb
42-
4344
RUN usermod -u 1000 www-data
4445

4546
WORKDIR /var/www/laravel

php-fpm/Dockerfile-70

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ RUN apt-get update && apt-get install -y \
1111
curl \
1212
libpng12-dev \
1313
libfreetype6-dev \
14+
libssl-dev \
1415
libmcrypt-dev \
1516
--no-install-recommends \
1617
&& rm -r /var/lib/apt/lists/*
1718

1819
# install mcrypt library
1920
RUN docker-php-ext-install mcrypt
2021

22+
# Install mongodb driver
23+
RUN pecl install mongodb
24+
2125
# configure gd library
2226
RUN docker-php-ext-configure gd \
2327
--enable-gd-native-ttf \
@@ -41,9 +45,6 @@ RUN curl -L -o /tmp/memcached.tar.gz "https://github.com/php-memcached-dev/php-m
4145
RUN pecl install xdebug \
4246
&& docker-php-ext-enable xdebug
4347

44-
# Install mongodb driver
45-
RUN pecl install mongodb
46-
4748
RUN usermod -u 1000 www-data
4849

4950
WORKDIR /var/www/laravel

0 commit comments

Comments
 (0)