mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 10:12:00 -08:00
Fix docker build
This commit is contained in:
parent
a3a8a5769d
commit
b98d56dcf6
@ -1,9 +1,9 @@
|
|||||||
FROM alpine AS builder
|
FROM alpine:edge AS builder
|
||||||
|
|
||||||
COPY . /go/src/matterbridge
|
COPY . /go/src/matterbridge
|
||||||
RUN apk --no-cache add go git \
|
RUN apk --no-cache add go git \
|
||||||
&& cd /go/src/matterbridge \
|
&& cd /go/src/matterbridge \
|
||||||
&& go build -mod vendor -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
|
&& CGO_ENABLED=0 go build -mod vendor -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
RUN apk --no-cache add ca-certificates mailcap
|
RUN apk --no-cache add ca-certificates mailcap
|
||||||
|
@ -16,7 +16,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
version = "1.22.4-dev"
|
version = "1.23.0-dev"
|
||||||
githash string
|
githash string
|
||||||
|
|
||||||
flagConfig = flag.String("conf", "matterbridge.toml", "config file")
|
flagConfig = flag.String("conf", "matterbridge.toml", "config file")
|
||||||
|
Loading…
Reference in New Issue
Block a user