Skip to content

Commit 4f33903

Browse files
committed
Reduce image size by remerging layers
1 parent 7dd6e63 commit 4f33903

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

Dockerfile

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,9 @@ RUN apk add --no-cache --virtual .sys-deps \
5656
sqlite-dev \
5757
imap-dev \
5858
postgresql-dev \
59-
lua-resty-core
60-
61-
# Install PHP modules
62-
RUN docker-php-ext-configure gd \
59+
lua-resty-core && \
60+
# Install PHP modules
61+
docker-php-ext-configure gd \
6362
--enable-gd \
6463
--with-freetype \
6564
--with-jpeg && \
@@ -70,14 +69,10 @@ RUN docker-php-ext-configure gd \
7069
pecl install -o -f redis && \
7170
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \
7271
echo "zend_extension=xdebug" > /usr/local/etc/php/conf.d/xdebug.ini && \
73-
docker-php-source delete
74-
# mkdir -p /etc/nginx && \
75-
# mkdir -p /var/www/app && \
76-
# mkdir -p /run/nginx && \
77-
78-
79-
# Install composer and certbot
80-
RUN mkdir -p /var/log/supervisor && \
72+
docker-php-source delete && \
73+
mkdir -p /var/www/app && \
74+
# Install composer and certbot
75+
mkdir -p /var/log/supervisor && \
8176
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
8277
php composer-setup.php --quiet --install-dir=/usr/bin --filename=composer && \
8378
rm composer-setup.php &&\

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on
1010
### Versioning
1111
| Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version |
1212
|-----|-------|-----|--------|--------|
13-
| latest/3.0.2 | Master Branch |1.22.1 | 8.2.3 | 3.17 |
13+
| latest/3.1.0 | Master Branch |1.22.1 | 8.2.3 | 3.17 |
1414

1515
For other tags please see: [versioning](https://github.com/richarvey/nginx-php-fpm/blob/master/docs/versioning.md)
1616

docs/versioning.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ The latest tag will always follow the master branch in git. the other versions w
1717

1818
| Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes |
1919
|-----|-------|-----|--------|--------|----------|
20+
| 3.1.0 | 8.2.3 |1.22.1 | 3.17 | 0.3.17 | reduced image size |
2021
| 3.0.2 | 8.2.3 |1.22.1 | 3.17 | 0.3.17 | fixed gd2 and xsl errors |
2122
| 3.0.1 | 8.2.3 |1.22.1 | 3.17 | 0.3.17 | no cache typo fixed + TZ fixed in scripts |
2223
| 3.0.0 | 8.2.3 |1.22.1 | 3.17 | 0.3.16 | upgraded php to 8.2.3 switched to packaged nginx |

0 commit comments

Comments
 (0)