+3
-1
Dockerfile
+3
-1
Dockerfile
···
2
2
env KNOT_REPO_SCAN_PATH=/home/git/repositories
3
3
env CGO_ENABLED=1
4
4
5
+
arg TAG='v1.4.0-alpha'
6
+
5
7
workdir /app
6
8
run apk add git gcc musl-dev
7
-
run git clone https://tangled.sh/@tangled.sh/core .
9
+
run git clone -b ${TAG} https://tangled.sh/@tangled.sh/core .
8
10
run go build -o /usr/bin/knot -ldflags '-s -w -extldflags "-static"' ./cmd/knot
9
11
10
12
from alpine:edge