Skip to content

Commit

Permalink
update docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Stieneee committed Feb 1, 2021
1 parent a58a719 commit 7b20d39
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.env
dist
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
FROM golang:1.15 as builder
WORKDIR /go/src/app
COPY . .

RUN go build -o mumble-discord-bridge -ldflags="-extldflags=-static" *.go
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
RUN ./bin/goreleaser build --skip-validate

# Stage 2

FROM alpine:latest as static
WORKDIR /opt/
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
CMD ["/opt/mumble-discord-bridge"]

0 comments on commit 7b20d39

Please sign in to comment.