File tree Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Expand file tree Collapse file tree 3 files changed +40
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
7
7
## [ Unreleased]
8
8
9
+ ## [ 1.4.1] - 2020-01-05
10
+ ### Added
11
+ - Added libsodium to php 7.1 image.
12
+
13
+ ### Changed
14
+ - Upgraded libsodium library to version 1.0.18.
15
+
9
16
## [ 1.4.0] - 2019-09-26
10
17
### Added
11
18
- Added elasticsearch image
Original file line number Diff line number Diff line change 1
1
FROM php:7.1-fpm
2
2
MAINTAINER Juan Alonso <juan.jalogut@gmail.com>
3
3
4
- RUN apt-get update && apt-get install -y \
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
5
cron \
6
6
git \
7
7
gzip \
@@ -17,6 +17,7 @@ RUN apt-get update && apt-get install -y \
17
17
zip \
18
18
procps \
19
19
sudo \
20
+ libsodium-dev \
20
21
&& rm -rf /var/lib/apt/lists/*
21
22
22
23
RUN docker-php-ext-configure \
@@ -35,6 +36,22 @@ RUN docker-php-ext-install \
35
36
xsl \
36
37
zip
37
38
39
+ # Remove libsodium and install upgrading version:
40
+ RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \
41
+ && rm -f /usr/local/lib/php/extensions/*/*sodium.so \
42
+ && apt-get remove libsodium* -y \
43
+ && mkdir -p /tmp/libsodium \
44
+ && curl -sL https://github.com/jedisct1/libsodium/archive/1.0.18-RELEASE.tar.gz | tar xzf - -C /tmp/libsodium \
45
+ && cd /tmp/libsodium/libsodium-1.0.18-RELEASE/ \
46
+ && ./configure \
47
+ && make && make check \
48
+ && make install \
49
+ && cd / \
50
+ && rm -rf /tmp/libsodium \
51
+ && pecl install -o -f libsodium
52
+
53
+ RUN docker-php-ext-enable sodium
54
+
38
55
RUN pecl channel-update pecl.php.net \
39
56
&& pecl install xdebug \
40
57
&& docker-php-ext-enable xdebug \
Original file line number Diff line number Diff line change 1
1
FROM php:7.2-fpm
2
2
MAINTAINER Juan Alonso <juan.jalogut@gmail.com>
3
3
4
- RUN apt-get update && apt-get install -y \
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
5
cron \
6
6
git \
7
7
gzip \
@@ -34,6 +34,20 @@ RUN docker-php-ext-install \
34
34
xsl \
35
35
zip
36
36
37
+ # Remove libsodium and install upgrading version:
38
+ RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \
39
+ && rm -f /usr/local/lib/php/extensions/*/*sodium.so \
40
+ && apt-get remove libsodium* -y \
41
+ && mkdir -p /tmp/libsodium \
42
+ && curl -sL https://github.com/jedisct1/libsodium/archive/1.0.18-RELEASE.tar.gz | tar xzf - -C /tmp/libsodium \
43
+ && cd /tmp/libsodium/libsodium-1.0.18-RELEASE/ \
44
+ && ./configure \
45
+ && make && make check \
46
+ && make install \
47
+ && cd / \
48
+ && rm -rf /tmp/libsodium \
49
+ && pecl install -o -f libsodium
50
+
37
51
RUN docker-php-ext-enable sodium
38
52
39
53
RUN pecl channel-update pecl.php.net \
You can’t perform that action at this time.
0 commit comments