A simple web application to send CSP violation reports to an email address
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines

  1. FROM golang:alpine as builder
  2. RUN mkdir /build /out && apk add --no-cache git ca-certificates
  3. WORKDIR /build
  4. COPY . .
  5. RUN go get && go build -o /out/csp-handler
  6. FROM alpine:latest
  7. RUN mkdir /app && addgroup -S csp-handler && adduser -S csp-handler -G csp-handler && apk add --no-cache ca-certificates
  8. COPY --from=builder /out/csp-handler /app/csp-handler
  9. USER csp-handler
  10. ENTRYPOINT /app/csp-handler