From cb1ee4f3a9ff09b11c99fd802225594a35497110 Mon Sep 17 00:00:00 2001 From: VaiTon Date: Sat, 29 Apr 2023 19:39:22 +0200 Subject: Cache backend build dependency in docker image build --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a77c109..5c0882e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,9 @@ WORKDIR /caronte COPY . ./ +RUN go mod download + RUN export VERSION=$(git describe --tags --abbrev=0) && \ - go mod download && \ go build -ldflags "-X main.Version=$VERSION" && \ mkdir -p build && \ cp -r caronte pcaps/ scripts/ shared/ test_data/ build/ -- cgit v1.2.3-70-g09d2