Speedup docker builds by using cache

This commit is contained in:
9seconds
2026-03-12 22:13:00 +01:00
parent a85348d6be
commit 991346621c
2 changed files with 8 additions and 12 deletions
+5 -1
View File
@@ -11,9 +11,13 @@ RUN set -x \
ca-certificates \
git
COPY . /app
COPY go.mod go.sum /app/
WORKDIR /app
RUN go mod download
COPY . /app
RUN set -x \
&& version="$(git describe --exact-match HEAD 2>/dev/null || git describe --tags --always)" \
&& go build \