Created
June 30, 2025 20:31
-
-
Save kewalaka/3de60017a60c80444aa537c448b2e259 to your computer and use it in GitHub Desktop.
shibboleth nginx module for alpine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine:3.22 AS builder | |
| RUN apk add --no-cache \ | |
| build-base \ | |
| cmake \ | |
| pcre-dev \ | |
| openssl-dev \ | |
| zlib-dev \ | |
| git \ | |
| wget \ | |
| perl \ | |
| perl-app-cpanminus | |
| ARG NGINX_VERSION=1.29.0 | |
| WORKDIR /build | |
| RUN wget -O - "https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" | tar -xzf - | |
| WORKDIR /build/nginx-${NGINX_VERSION} | |
| RUN git clone https://github.com/nginx-shib/nginx-http-shibboleth.git /build/shib-module | |
| RUN git clone https://github.com/openresty/headers-more-nginx-module.git -b v0.34 /build/headers-more | |
| RUN ./configure \ | |
| --with-debug \ | |
| --add-dynamic-module=/build/shib-module \ | |
| --add-dynamic-module=/build/headers-more | |
| RUN make modules | |
| # build with: | |
| # docker build --build-arg NGINX_VERSION=1.29.0 -t shibboleth-nginx . | |
| # outputs: | |
| # FROM alpine:3.22 AS output | |
| # COPY --from=builder /build/nginx-*/objs/ngx_http_shibboleth_module.so /shibboleth/ngx_http_shibboleth_module.so | |
| # COPY --from=builder /build/nginx-*/objs/ngx_http_headers_more_filter_module.so /shibboleth/ngx_http_headers_more_filter_module.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment