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 24, 2024
1 parent 40e8ed4 commit a4f311f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile.proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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

CMD ["./srs-proxy"]

0 comments on commit a4f311f

Please sign in to comment.