mirror of
https://github.com/ossrs/srs.git
synced 2025-11-24 03:44:02 +08:00
fix crash issue caused by reload configuration file, which occurs when a vhost is added/removed in the new configuration. Introduced by https://github.com/ossrs/srs/pull/4458 see https://github.com/ossrs/srs/issues/4529
25 lines
726 B
Docker
25 lines
726 B
Docker
|
|
############################################################
|
|
# build
|
|
############################################################
|
|
FROM ossrs/srs:ubuntu20 AS build
|
|
|
|
COPY . /tmp/signaling
|
|
RUN cd /tmp/signaling && make
|
|
RUN cp /tmp/signaling/objs/signaling /usr/local/bin/signaling
|
|
RUN cp -R /tmp/signaling/www /usr/local/
|
|
|
|
############################################################
|
|
# dist
|
|
############################################################
|
|
FROM ubuntu:focal AS dist
|
|
|
|
# HTTP/1989
|
|
EXPOSE 1989
|
|
# SRS binary, config files and srs-console.
|
|
COPY --from=build /usr/local/bin/signaling /usr/local/bin/
|
|
COPY --from=build /usr/local/www /usr/local/www
|
|
# Default workdir and command.
|
|
WORKDIR /usr/local
|
|
CMD ["./bin/signaling"]
|