diff options
author | VaiTon | 2023-04-29 17:39:22 +0000 |
---|---|---|
committer | VaiTon | 2023-04-29 17:39:22 +0000 |
commit | cb1ee4f3a9ff09b11c99fd802225594a35497110 (patch) | |
tree | a1cf7484a80c7a330ed7e99ae379fa82da6b74fd | |
parent | 45b809f3df9c267045d3617608228a04390fea06 (diff) |
Cache backend build dependency in docker image build
-rw-r--r-- | Dockerfile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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/ |