Community maintained Docker config for the spindle server

dockerfile: add build arg for the tag to build

hanna 4df30487 9d7e51d2

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