aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-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/