forked from q191201771/lal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (15 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Build
FROM golang:1.16.4-buster as builder
WORKDIR /go/src/github.com/cool9850311/lal-StreamPlatformLite
ENV GOPROXY=https://goproxy.cn,https://goproxy.io,direct
COPY . .
RUN make build_for_linux
# Output
FROM debian:stretch-slim
EXPOSE 1935 8080 4433 5544 8083 8084 30000-30100/udp
COPY --from=builder /go/src/github.com/cool9850311/lal-StreamPlatformLite/bin/lalserver /lal/bin/lalserver
COPY --from=builder /go/src/github.com/cool9850311/lal-StreamPlatformLite/conf/lalserver.conf.json /lal/conf/lalserver.conf.json
COPY --from=builder /go/src/github.com/cool9850311/lal-StreamPlatformLite/conf/cert.pem /lal/conf/cert.pem
COPY --from=builder /go/src/github.com/cool9850311/lal-StreamPlatformLite/conf/key.pem /lal/conf/key.pem
WORKDIR /lal
CMD ["sh","-c","./bin/lalserver -c conf/lalserver.conf.json"]