mirror of https://github.com/gwuhaolin/livego.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
495 B
21 lines
495 B
FROM golang:latest as builder |
|
WORKDIR /app |
|
ENV GOPROXY https://goproxy.io |
|
COPY go.mod go.sum ./ |
|
RUN go mod download |
|
COPY . . |
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o livego . |
|
|
|
FROM alpine:latest |
|
RUN mkdir -p /app/config |
|
WORKDIR /app |
|
ENV RTMP_PORT 1935 |
|
ENV HTTP_FLV_PORT 7001 |
|
ENV HLS_PORT 7002 |
|
ENV HTTP_OPERATION_PORT 8090 |
|
COPY --from=builder /app/livego . |
|
EXPOSE ${RTMP_PORT} |
|
EXPOSE ${HTTP_FLV_PORT} |
|
EXPOSE ${HLS_PORT} |
|
EXPOSE ${HTTP_OPERATION_PORT} |
|
ENTRYPOINT ["./livego"]
|
|
|