Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

Php 7.4 - update Nginx to current stable version

Open syerad opened this issue 4 years ago • 7 comments

Hey, are there any plans or even any simple solutions to update the PHP image to the current stable nginx version? What is the preferred way to do that?

syerad avatar Dec 06 '21 08:12 syerad

The image is based on php:7.4-fpm-buster therefore the installed nginx version is always the stable version from the debian repository.

htuscher avatar Dec 06 '21 09:12 htuscher

Yeah, I saw that. But there is a nginx repository that holds all the stable versions and I was thinking to include that into these images.

Since the current stable version from the debian repository is 1.14.2 the image is working with quite an outdated version. Would it be suitable to include the Nginx repository into the images or would you like to stick to the stable version from the official debian repository?

syerad avatar Dec 06 '21 09:12 syerad

:thinking: I don't see any issue why not. I'll take a look

htuscher avatar Dec 06 '21 09:12 htuscher

If I can help out just let me know :)

syerad avatar Dec 06 '21 10:12 syerad

Not sure if it helps, but probably these commands are helpful:

`RUN printf "deb http://nginx.org/packages/debian/ buster nginx\n deb-src http://nginx.org/packages/debian/ buster nginx" >> /etc/apt/sources.list

RUN curl -L https://nginx.org/keys/nginx_signing.key | apt-key add -`

syerad avatar Dec 06 '21 10:12 syerad

I solved this at https://github.com/webdevops/Dockerfile/issues/423#issuecomment-971105592 if that helps

tractorcow avatar Dec 15 '21 04:12 tractorcow

Thanks, I've created a PR already :) https://github.com/webdevops/Dockerfile/pull/431

syerad avatar Dec 15 '21 13:12 syerad