-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathDockerfile
26 lines (20 loc) · 982 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
##= BUILDER =##
FROM crystallang/crystal:latest-alpine As builder
WORKDIR /noir
COPY . .
RUN shards install --production && \
shards build --release --no-debug --production --static
# Ref: https://crystal-lang.org/reference/1.15/guides/static_linking.html
##= RUNNER =##
FROM alpine:latest
LABEL org.opencontainers.image.title="OWASP Noir"
LABEL org.opencontainers.image.version="0.19.0"
LABEL org.opencontainers.image.description="OWASP Noir is an open-source project specializing in identifying attack surfaces for enhanced whitebox security testing and security pipeline."
LABEL org.opencontainers.image.authors="Noir Team (@hahwul, @ksg97031)"
LABEL org.opencontainers.image.source=https://github.com/owasp-noir/noir
LABEL org.opencontainers.image.documentation="https://owasp-noir.github.io/noir/"
LABEL org.opencontainers.image.licenses=MIT
USER 2:2
COPY --from=builder /noir/bin/noir /usr/local/bin/noir
COPY --from=builder /etc/ssl/cert.pem /etc/ssl/
CMD ["noir"]