Skip to content

Commit

Permalink
Build using golang-fips container image
Browse files Browse the repository at this point in the history
  • Loading branch information
sumgarg committed Dec 27, 2024
1 parent 917d74c commit f639ab4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:latest AS golang
FROM registry.access.redhat.com/ubi8/go-toolset:latest AS golang
WORKDIR /root/go/src/github.com/extremenetworks/telegraf

COPY .git .git
Expand Down Expand Up @@ -29,3 +29,7 @@ FROM scratch AS extract
COPY --from=builder /root/go/src/github.com/extremenetworks/telegraf/telegraf /usr/bin/
ENTRYPOINT ["/usr/bin/telegraf"]
CMD ["--help"]


FROM registry.access.redhat.com/ubi8/ubi-micro:latest AS final
COPY --from=extract /usr/bin/telegraf /usr/bin/telegraf

0 comments on commit f639ab4

Please sign in to comment.