diff --git a/images/openwisp_nginx/Dockerfile b/images/openwisp_nginx/Dockerfile index e0a4c48d..c45da0f8 100644 --- a/images/openwisp_nginx/Dockerfile +++ b/images/openwisp_nginx/Dockerfile @@ -1,22 +1,23 @@ -FROM nginx:1.23.4-alpine +FROM nginx:1.27.0-alpine RUN apk add --update --no-cache \ - openssl~=3.0.15-r0 \ - certbot~=1.32.0-r0 \ - certbot-nginx~=1.32.0-r0 && \ + py3-pip~=23.3.1-r0 \ + certbot~=2.7.4-r0 \ + certbot-nginx~=2.7.4-r0 && \ rm -rf /var/cache/apk/* /tmp/* WORKDIR /etc/nginx/ CMD ["sh", "init_command.sh"] EXPOSE 80 443 +# DL3018 COPY ./common/services.py \ ./common/init_command.sh \ ./common/utils.sh \ ./openwisp_nginx/ \ /etc/nginx/ -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --break-system-packages --no-cache-dir -r requirements.txt ENV MODULE_NAME=nginx \ PYTHONUNBUFFERED=1 \