Skip to content

Commit

Permalink
fix: remove version
Browse files Browse the repository at this point in the history
  • Loading branch information
Zygimantass committed Apr 17, 2024
1 parent 6965db4 commit 0d6db82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN addgroup -S grpcui && adduser -S grpcui -G grpcui

WORKDIR /tmp/fullstorydev/grpcui
# copy just the files/sources we need to build grpcui
COPY VERSION *.go go.* /tmp/fullstorydev/grpcui/
COPY *.go go.* /tmp/fullstorydev/grpcui/
COPY cmd /tmp/fullstorydev/grpcui/cmd
COPY internal /tmp/fullstorydev/grpcui/internal
COPY standalone /tmp/fullstorydev/grpcui/standalone
Expand All @@ -15,7 +15,7 @@ COPY standalone /tmp/fullstorydev/grpcui/standalone
ENV CGO_ENABLED=0
ENV GO111MODULE=on
RUN go build -o /grpcui \
-ldflags "-w -extldflags \"-static\" -X \"main.version=$(cat VERSION)\"" \
-ldflags "-w -extldflags \"-static\"" \
./cmd/grpcui

# New FROM so we have a nice'n'tiny image
Expand Down

0 comments on commit 0d6db82

Please sign in to comment.