Skip to content

Commit

Permalink
Resolve "missing go.sum entry" in docker build
Browse files Browse the repository at this point in the history
Update go dependencies for pub and sub in docker containers as part of the build process

closes #690
  • Loading branch information
MattBrittan authored Sep 3, 2024
2 parents 714f7c0 + 91231b3 commit 514b7fa
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 514b7fa

Please sign in to comment.