tangled
alpha
login
or
join now
bas.sh
/
knot-docker
forked from
psychedeli.ca/knot-docker
0
fork
atom
Community maintained Docker config for the knot server
0
fork
atom
overview
issues
pulls
pipelines
dockerfile: add build arg for the tag to build
doll.sister.pet
9 months ago
4df30487
9d7e51d2
verified
This commit was signed with the committer's
known signature
.
doll.sister.pet
SSH Key Fingerprint:
SHA256:4g9cWhkAAw8gwqhJUcVbSnGEvdGwklW+1Aa/fMUu59k=
+3
-1
1 changed file
expand all
collapse all
unified
split
Dockerfile
+3
-1
Dockerfile
···
2
2
env KNOT_REPO_SCAN_PATH=/home/git/repositories
3
3
env CGO_ENABLED=1
4
4
5
5
+
arg TAG='v1.4.0-alpha'
6
6
+
5
7
workdir /app
6
8
run apk add git gcc musl-dev
7
7
-
run git clone https://tangled.sh/@tangled.sh/core .
9
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