-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
55 lines (40 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM golang:1.16-alpine as base
ENV GO111MODULE=on
ENV GIN_MODE=release
WORKDIR $GOPATH/src/github.com/manishiitg/actions
RUN apk add \
gstreamer \
gstreamer-dev \
gst-plugins-base \
gst-plugins-base-dev \
gst-plugins-good \
gst-plugins-bad \
gst-plugins-ugly
FROM base as build
RUN apk add \
build-base \
pkgconfig
COPY . $GOPATH/src/github.com/manishiitg/actions
RUN cd $GOPATH/src/github.com/manishiitg/actions && go mod download
RUN GOOS=linux go build -o /actions .
FROM jrottenberg/ffmpeg:4.1-alpine as ffmpeg-stage
FROM base
RUN apk --no-cache add ca-certificates
COPY --from=ffmpeg-stage /usr/local /usr/local
COPY --from=build /actions /usr/local/bin/actions
RUN mkdir -p /go/src/github.com/manishiitg/actions/tracktortp/
COPY ./tracktortp/subscribe.sdp /go/src/github.com/manishiitg/actions/tracktortp/
RUN mkdir -p /go/src/github.com/manishiitg/actions/cgfs
RUN mkdir -p /go/src/github.com/manishiitg/actions/cgfs/gcloud
COPY ./cfgs/gcloud/steady-datum-291915-9c9286662fbf.json /go/src/github.com/manishiitg/actions/cfgs/gcloud/steady-datum-291915-9c9286662fbf.json
RUN apk add \
gstreamer \
gstreamer-dev \
gst-plugins-base \
gst-plugins-base-dev \
gst-plugins-good \
gst-plugins-bad \
gst-plugins-ugly
# COPY config.toml /configs/sfu.toml
ENTRYPOINT ["/usr/local/bin/actions","server"]
CMD [""]