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 . .
|
COPY . .
|
||||||
RUN go get -v && go build -v
|
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
|
# Runtime container
|
||||||
FROM debian:stable-slim
|
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