diff --git a/cmd/docker/publisher/dockerfile b/cmd/docker/publisher/dockerfile index d069f84..a8df3b2 100644 --- a/cmd/docker/publisher/dockerfile +++ b/cmd/docker/publisher/dockerfile @@ -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 diff --git a/cmd/docker/subscriber/dockerfile b/cmd/docker/subscriber/dockerfile index 09e3756..9b8b3b2 100644 --- a/cmd/docker/subscriber/dockerfile +++ b/cmd/docker/subscriber/dockerfile @@ -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