1
0
Fork 0
forked from External/grumble

Updated Dockerfile.

Dockerfile now uses go 1.14, pulls in the required build packages to
build the required modules, and exposes the server ports for use.
This commit is contained in:
Derrick 2020-04-11 13:00:36 -07:00
parent a6dc45193a
commit 84c57c38c3
2 changed files with 14 additions and 6 deletions

View file

@ -1,11 +1,12 @@
FROM arm32v6/golang:1.9-alpine as builder
FROM arm32v6/golang:1.14-alpine as builder
COPY . /go/src/mumble.info/grumble
WORKDIR /go/src/mumble.info/grumble
RUN apk add --no-cache git \
&& go get -v -t ./... \
RUN apk add --no-cache git build-base
RUN go get -v -t ./... \
&& go build mumble.info/grumble/cmd/grumble \
&& go test -v ./...
@ -21,4 +22,7 @@ WORKDIR /data
VOLUME /data
EXPOSE 64738/tcp
EXPOSE 64738/udp
ENTRYPOINT [ "/usr/bin/grumble", "--datadir", "/data", "--log", "/data/grumble.log" ]