Building modified version via golang docker container

pull/2897/head
HLOverflow 2023-06-21 17:01:13 +08:00
parent 43982882e7
commit 1b02bfb68b
3 changed files with 6 additions and 0 deletions

View File

@ -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

3
build-binary-via-docker.sh Executable file
View File

@ -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 .

BIN
output/gophish-modified-with-qr Executable file

Binary file not shown.