aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVaiTon2023-04-29 17:39:22 +0000
committerVaiTon2023-04-29 17:39:22 +0000
commitcb1ee4f3a9ff09b11c99fd802225594a35497110 (patch)
treea1cf7484a80c7a330ed7e99ae379fa82da6b74fd
parent45b809f3df9c267045d3617608228a04390fea06 (diff)
Cache backend build dependency in docker image build
-rw-r--r--Dockerfile3
1 files changed, 2 insertions, 1 deletions
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/