FROM golang:1.23.4 AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download && go mod verify # Copy project files COPY . . # Build RUN make # Final stage FROM chromedp/headless-shell:latest # Copy the binary and required files COPY --from=builder /app/docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui ADD static /app/static ADD templates /app/templates # Set working directory WORKDIR /app ENTRYPOINT ["/app/docker-ldap-change-password-web-ui"]