I have a customer environment where there is nginx was already installed with version 1.25.0 ( this is from Nginx) and have nginx-extras package from Debian. I am trying to upgrade nginx version to 1.26.0 ( current stable version), but nginx-extras have conflicts when doing so. Any suggestions from experts please. Part of my main.docker file is as follows
FROM nginx:1.25.0 AS xyz_nginx
RUN apt-get update
RUN apt-get install --fix-broken nano nginx-extras -y
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
RUN rm /etc/nginx/sites-enabled/default
COPY --from=base /usr/src/www/static /usr/src/www/static