Skip to content

Commit

Permalink
dockerfile: fix build args (#2275)
Browse files Browse the repository at this point in the history
Convert build args into env vars.

category: misc
ticket: #2270
  • Loading branch information
corverroos authored Jun 5, 2023
1 parent 0c4c5d6 commit 5940e70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ COPY . .
# Populate GO_BUILD_FLAGS_1 or _2 with build args to override build flags.
ARG GO_BUILD_FLAGS_1
ARG GO_BUILD_FLAGS_2
ENV GO_BUILD_FLAGS_1=${GO_BUILD_FLAGS_1}
ENV GO_BUILD_FLAGS_2=${GO_BUILD_FLAGS_2}
RUN echo "Building with GO_BUILD_FLAGS_1=${GO_BUILD_FLAGS_1} GO_BUILD_FLAGS_2=${GO_BUILD_FLAGS_2}"
# Build with Go module and Go build caches.
RUN \
Expand Down

0 comments on commit 5940e70

Please sign in to comment.