Skip to content

Instantly share code, notes, and snippets.

@grzegorz-rozycki
Created May 15, 2023 06:31
Show Gist options
  • Save grzegorz-rozycki/0a4907ae17ce117607c114fc08138c3c to your computer and use it in GitHub Desktop.
Save grzegorz-rozycki/0a4907ae17ce117607c114fc08138c3c to your computer and use it in GitHub Desktop.
Dockerfile with local-php-security-checker
FROM alpine as builder
RUN apk update && apk upgrade && apk add --no-cache ca-certificates;\
update-ca-certificates
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./local-php-security-checker /usr/local/bin/local-php-security-checker
WORKDIR "/app"
CMD ["/usr/local/bin/local-php-security-checker"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment