Skip to content

Commit

Permalink
fix: issue 690:updating go dependencies from pub and sub into the con…
Browse files Browse the repository at this point in the history
…tainers before building
  • Loading branch information
JefJrFigueiredo committed Sep 3, 2024
1 parent 714f7c0 commit 91231b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/docker/publisher/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV CGO_ENABLED 0

ADD . /pub_src
WORKDIR /pub_src
RUN go build -gcflags "all=-N -l" -o /pub
RUN go mod tidy && go build -gcflags "all=-N -l" -o /pub

# Final stage
FROM alpine:latest
Expand Down
2 changes: 1 addition & 1 deletion cmd/docker/subscriber/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV CGO_ENABLED 0

ADD . /sub_src
WORKDIR /sub_src
RUN go build -gcflags "all=-N -l" -o /sub
RUN go mod tidy && go build -gcflags "all=-N -l" -o /sub

# Final stage
FROM alpine:latest
Expand Down

0 comments on commit 91231b3

Please sign in to comment.