Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bump build image (go 1.19.3), added govulncheck, fix permissions in /…
…go - also stop using /go/src (#641)
- Loading branch information
Showing
9 changed files
with
30 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
# Build the binaries in larger image | ||
FROM docker.io/fortio/fortio.build:v47 as build | ||
WORKDIR /go/src/fortio.org | ||
FROM docker.io/fortio/fortio.build:v50 as build | ||
WORKDIR /build | ||
COPY . fortio | ||
RUN make -C fortio official-build-version BUILD_DIR=/build OFFICIAL_TARGET=fortio.org/fortio/echosrv OFFICIAL_BIN=../echosrv.bin | ||
# Minimal image with just the binary | ||
FROM scratch | ||
COPY --from=build /go/src/fortio.org/echosrv.bin /usr/bin/echosrv | ||
COPY --from=build /build/echosrv.bin /usr/bin/echosrv | ||
EXPOSE 8080 | ||
ENTRYPOINT ["/usr/bin/echosrv"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Build the binaries in larger image | ||
FROM docker.io/fortio/fortio.build:v47 as build | ||
WORKDIR /go/src/fortio.org | ||
FROM docker.io/fortio/fortio.build:v50 as build | ||
WORKDIR /build | ||
COPY . fortio | ||
# fcurl should not need vendor/no dependencies | ||
RUN make -C fortio official-build-version BUILD_DIR=/build OFFICIAL_TARGET=fortio.org/fortio/fcurl OFFICIAL_BIN=../fcurl.bin | ||
# Minimal image with just the binary and certs | ||
FROM scratch | ||
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=build /go/src/fortio.org/fcurl.bin /usr/bin/fcurl | ||
COPY --from=build /build/fcurl.bin /usr/bin/fcurl | ||
ENTRYPOINT ["/usr/bin/fcurl"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters