diff --git a/build/Dockerfile b/build/Dockerfile index 251f185..6c73041 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -13,7 +13,7 @@ RUN \ COPY go.mod /tmp/tmp/go.mod -RUN cd /tmp/tmp/ && go mod download && rm -r /tmp/tmp +RUN cd /tmp/tmp/ && go mod tidy && go mod download && rm -r /tmp/tmp COPY entrypoint.sh /entrypoint.sh diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 91c4e46..effcc78 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -6,6 +6,7 @@ targets=${@-"darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 windows/am cd /usr/src/myapp go generate ./... +go mod tidy for target in $targets; do for tag in "full" "noaws"; do