Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
FROM alpine:latest as build

# Define version args
ARG SRT_VERSION=v1.4.2
ARG SLS_VERSION=V1.4.8
ARG SRT_VERSION=v1.5.3
ARG SLS_VERSION=master

# Install build dependencies
RUN apk update
RUN apk upgrade
RUN apk add --no-cache \
linux-headers \
alpine-sdk \
Expand All @@ -18,7 +19,7 @@ RUN apk add --no-cache \
# Clone projects
WORKDIR /source
RUN git clone --branch ${SRT_VERSION} https://github.com/Haivision/srt.git srt
RUN git clone --branch ${SLS_VERSION} https://github.com/Edward-Wu/srt-live-server.git sls
RUN git clone --branch ${SLS_VERSION} https://github.com/irlserver/irl-srt-server.git sls

# Compile SRT
WORKDIR /source/srt
Expand All @@ -27,7 +28,9 @@ RUN make install

# Compile SLS
WORKDIR /source/sls
RUN make
RUN git submodule update --init
RUN cmake . -DCMAKE_BUILD_TYPE=Release
RUN make -j8

# Entry image
FROM alpine:latest
Expand All @@ -43,7 +46,7 @@ RUN apk update && \

# Copy SRT libraries
COPY --from=build /usr/local/bin/srt-* /usr/local/bin/
COPY --from=build /usr/local/lib64/libsrt* /usr/local/lib64/
COPY --from=build /usr/local/lib/libsrt* /usr/local/lib/

# Copy SLS binary
COPY --from=build /source/sls/bin/* /usr/local/bin/
Expand All @@ -55,5 +58,5 @@ WORKDIR /home/srt

# Define entrypoint
VOLUME /logs
EXPOSE 1935/udp
ENTRYPOINT ["sls", "-c", "/etc/sls/sls.conf"]
EXPOSE 8080 8181 1935/udp 1936/udp
ENTRYPOINT [ "srt_server", "-c", "/etc/sls/sls.conf"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# srt-server-docker
A Docker container for srt-live-server https://github.com/Edward-Wu/srt-live-server
Added docker-compose.yml
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'
services:
srt:
image: ghcr.io/nerdcubed/srt-server-docker/srt-server:6c9570e
ports:
- "8100:8080/udp"
volumes:
- type: bind
source: /DATA/AppData/sls/sls.conf
target: /etc/sls/sls.conf