Skip to content

Commit

Permalink
add proxy dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
suzp1984 committed Sep 25, 2024
1 parent 40e8ed4 commit ae6d8fc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile.proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
ARG ARCH
ARG IMAGE=ossrs/srs:ubuntu20
FROM ${ARCH}${IMAGE} AS build

COPY ./proxy /proxy

WORKDIR /proxy

COPY ./trunk/research /proxy/static

RUN make clean && make

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"]

0 comments on commit ae6d8fc

Please sign in to comment.