Skip to content

Commit

Permalink
fix(build): Load the zip module in nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
arsenetar committed Jul 25, 2022
1 parent 8a7a935 commit cb0e1e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ FROM nginxinc/nginx-unprivileged:1.23.1
ARG USER
ARG nginx_module_dir="/usr/local/nginx/modules/"
COPY --from=builder ${nginx_module_dir}/ngx_http_zip_module.so /etc/nginx/modules/
RUN sed -i '1iload_module "modules/ngx_http_zip_module.so";' /etc/nginx/nginx.conf

USER root

Expand Down

0 comments on commit cb0e1e5

Please sign in to comment.