mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:44:02 +03:00
Speedup docker builds by using cache
This commit is contained in:
+5
-1
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user