From 91231b33cac97f0f8e56c95a24dbd941d9c84ede Mon Sep 17 00:00:00 2001 From: Jefferson Figueiredo Jr Date: Tue, 3 Sep 2024 09:52:16 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20issue=20690=EF=BC=9Aupdating=20go=20depe?= =?UTF-8?q?ndencies=20from=20pub=20and=20sub=20into=20the=20containers=20b?= =?UTF-8?q?efore=20building?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/docker/publisher/dockerfile | 2 +- cmd/docker/subscriber/dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/docker/publisher/dockerfile b/cmd/docker/publisher/dockerfile index d069f84a..a8df3b2c 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 09e37565..9b8b3b27 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