mirror of https://github.com/gophish/gophish
Building modified version via golang docker container
parent
43982882e7
commit
1b02bfb68b
|
@ -16,6 +16,9 @@ WORKDIR /go/src/github.com/gophish/gophish
|
|||
COPY . .
|
||||
RUN go get -v && go build -v
|
||||
|
||||
# This build stage will be useful for compiling modified binary via docker container
|
||||
FROM scratch AS binary
|
||||
COPY --from=build-golang /go/src/github.com/gophish/gophish/gophish /gophish-modified-with-qr
|
||||
|
||||
# Runtime container
|
||||
FROM debian:stable-slim
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
echo "[*] Building the golang binary into the ./output directory "
|
||||
docker image build --output "type=local,dest=$(pwd)/output" --target binary .
|
Binary file not shown.
Loading…
Reference in New Issue