mirror of
https://github.com/bluenviron/mediamtx
synced 2024-12-23 23:22:26 +00:00
20 lines
330 B
Docker
20 lines
330 B
Docker
FROM golang:1.18-alpine3.14
|
|
|
|
RUN apk add --no-cache \
|
|
ffmpeg
|
|
|
|
RUN wget -O /video.mkv http://jell.yfish.us/media/jellyfish-10-mbps-hd-h264.mkv
|
|
|
|
WORKDIR /s
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . ./
|
|
RUN go build -o /rtsp-simple-server .
|
|
|
|
COPY bench/proxy/start.sh /
|
|
RUN chmod +x /start.sh
|
|
|
|
ENTRYPOINT [ "/start.sh" ]
|