-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfb62f8
commit cca2a9e
Showing
2 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM golang:1.14.14-stretch | ||
|
||
ENV GO111MODULE=on | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion-sfu | ||
|
||
COPY go.mod go.sum ./ | ||
RUN cd $GOPATH/src/github.com/pion/ion-sfu && go mod download | ||
|
||
COPY pkg/ $GOPATH/src/github.com/pion/ion-sfu/pkg | ||
COPY cmd/ $GOPATH/src/github.com/pion/ion-sfu/cmd | ||
|
||
WORKDIR $GOPATH/src/github.com/pion/ion-sfu/cmd/signal/allrpc | ||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /sfu . | ||
|
||
FROM alpine:3.12.3 | ||
|
||
RUN apk --no-cache add ca-certificates | ||
COPY --from=0 /sfu /usr/local/bin/sfu | ||
|
||
COPY config.toml /configs/sfu.toml | ||
|
||
ENTRYPOINT ["/usr/local/bin/sfu"] | ||
CMD ["-c", "/configs/sfu.toml"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters