1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-09 16:42:48 +00:00

switch opus library

This commit is contained in:
2018-10-14 15:12:35 -05:00
parent 520ecb1ab7
commit 24db31ecd3
9 changed files with 2574 additions and 2600 deletions

View File

@@ -11,19 +11,17 @@ FROM golang:1.10.2-alpine3.7
WORKDIR /go/src/github.com/mgerb/go-discord-bot/server
COPY --from=0 /home/dist /go/src/github.com/mgerb/go-discord-bot/dist
ADD ./server .
RUN apk add --no-cache git alpine-sdk
RUN apk add --no-cache git alpine-sdk pkgconfig opus-dev opusfile-dev
RUN go get -u github.com/gobuffalo/packr/...
RUN go get -u github.com/golang/dep/cmd/dep
RUN dep ensure
# need to manually get this dependency because go dep doesn't work well with the C bindings
RUN go get layeh.com/gopus
RUN packr build -o /build/server
FROM wernight/youtube-dl
RUN apk update
RUN apk add ca-certificates
RUN apk add ca-certificates opus-dev opusfile-dev
WORKDIR /bot
COPY --from=1 /build/server /