update docker build
This commit is contained in:
parent
a58a7197a9
commit
7b20d39dcc
2
.dockerignore
Normal file
2
.dockerignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.env
|
||||||
|
dist
|
@ -5,15 +5,15 @@
|
|||||||
FROM golang:1.15 as builder
|
FROM golang:1.15 as builder
|
||||||
WORKDIR /go/src/app
|
WORKDIR /go/src/app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
|
||||||
RUN go build -o mumble-discord-bridge -ldflags="-extldflags=-static" *.go
|
RUN ./bin/goreleaser build --skip-validate
|
||||||
|
|
||||||
# Stage 2
|
# Stage 2
|
||||||
|
|
||||||
FROM alpine:latest as static
|
FROM alpine:latest as static
|
||||||
WORKDIR /opt/
|
WORKDIR /opt/
|
||||||
RUN apk add opus
|
RUN apk add opus
|
||||||
COPY --from=builder /go/src/app/mumble-discord-bridge .
|
COPY --from=builder /go/src/app/dist/mumble-discord-bridge_linux_amd64/mumble-discord-bridge .
|
||||||
|
|
||||||
# Entry Point
|
# Entry Point
|
||||||
CMD ["/opt/mumble-discord-bridge"]
|
CMD ["/opt/mumble-discord-bridge"]
|
||||||
|
Loading…
Reference in New Issue
Block a user