mirror of
https://github.com/vulncheck-oss/cve-2023-22527
synced 2026-06-08 18:05:07 +00:00
25 lines
466 B
Docker
25 lines
466 B
Docker
FROM golang:latest
|
|
LABEL author="VulnCheck"
|
|
LABEL website="https://vulncheck.com"
|
|
|
|
# build the binary in a subdirectory
|
|
WORKDIR /vulncheck
|
|
|
|
# add all Go files
|
|
COPY *.go ./
|
|
|
|
# add go.sum and go.mod
|
|
COPY go.* ./
|
|
|
|
# add the Makefile
|
|
COPY Makefile .
|
|
|
|
# change working directory and compile
|
|
RUN make compile
|
|
|
|
# mv the compiled binary to a generic name because our generic makefile appends arch info
|
|
RUN mv ./build/* ./exploit
|
|
|
|
# exec <3
|
|
ENTRYPOINT ["/vulncheck/exploit"]
|