-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Showing
1 changed file
with
31 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,31 @@ | ||
ARG ARCH | ||
FROM ${ARCH}ossrs/srs:ubuntu20 AS build | ||
|
||
COPY ./proxy /proxy | ||
|
||
WORKDIR /proxy | ||
|
||
RUN make clean && make | ||
|
||
############################################################ | ||
# dist | ||
############################################################ | ||
FROM ${ARCH}ubuntu:focal AS dist | ||
|
||
WORKDIR /proxy | ||
|
||
COPY --from=build /proxy/srs-proxy /proxy/ | ||
COPY ./trunk/research /proxy/static | ||
|
||
ENV PROXY_STATIC_FILES="/proxy/static" | ||
ENV PROXY_LOAD_BALANCER_TYPE="memory" | ||
ENV PROXY_RTMP_SERVER=1935 | ||
ENV PROXY_HTTP_SERVER=8080 | ||
ENV PROXY_HTTP_API=1985 | ||
ENV PROXY_WEBRTC_SERVER=8000 | ||
ENV PROXY_SRT_SERVER=10080 | ||
ENV PROXY_SYSTEM_API=12025 | ||
|
||
EXPOSE 1935 8080 1985 12025 8000/udp 10080/udp | ||
|
||
CMD ["./srs-proxy"] |