Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: dockerfile fixes #79

Merged
merged 1 commit into from
Jul 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ RUN go mod download
ARG HONEYBADGER_API_KEY
ARG IMUP_CLIENT_VERSION
ARG NDT7_CLIENT_NAME
ARG BUILD_LD_FLAGS=-ldflags="-X 'main.ClientVersion=$(IMUP_CLIENT_VERSION)' -X 'main.ClientName=$(NDT7_CLIENT_NAME)' -X 'main.HoneybadgerAPIKey=$(HONEYBADGER_API_KEY)'"
ARG BUILD_LD_FLAGS -ldflags="-X 'main.ClientVersion=${IMUP_CLIENT_VERSION}' -X 'main.ClientName=${NDT7_CLIENT_NAME}' -X 'main.HoneybadgerAPIKey=${HONEYBADGER_API_KEY}'"

RUN go build go build $(BUILD_LD_FLAGS) -o go/bin/client
RUN go build ${BUILD_LD_FLAGS} -o /go/bin/client

FROM gcr.io/distroless/static-debian11 as imup

COPY --from=build go/bin/client /
COPY --from=build /go/bin/client /imup

CMD ["/imup"]