authcrunch / authcrunch.github.io

Documentation for Caddy v2 Auth Portal and Authorize Plugins.
77 stars 32 forks source link

Build fails with Docker and xcaddy #43

Closed philipkukoba closed 1 year ago

philipkukoba commented 1 year ago

I want to build a docker image with the caddy-security plugin, the build fails, here is the output: image

My Dockerfile:

FROM caddy:2.6.2-builder AS builder
RUN xcaddy build \
    --with github.com/greenpau/caddy-security@v1.1.17
FROM caddy:2.6.2
COPY --from=builder /usr/bin/caddy /usr/bin/caddy

It seems that some 'github.com/crewjam/saml@v0.4.10' package is causing the issue? Any ideas?

greenpau commented 1 year ago

@philipkukoba , please see for a temporary fix. https://github.com/greenpau/caddy-security/issues/196

This will not be necessary once upstream is fixed.