-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
39 lines (31 loc) · 1.35 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM ghcr.io/unb-libraries/nginx:3.18.x
ENV ARCHIVE_PATH=""
ENV ARCHIVE_SUFFIX=mp4
ENV TWITCH_AUDIO_BITRATE=160k
ENV TWITCH_CODEC=libx264
ENV TWITCH_ENDPOINT=jfk
ENV TWITCH_FFMPEG_THREADS=0
ENV TWITCH_FPS=60
ENV TWITCH_HEIGHT=720
ENV TWITCH_KBITS_PER_VIDEO_FRAME=75
ENV TWITCH_KEY=""
ENV TWITCH_X264_PRESET=medium
ENV YOUTUBE_KEY=""
ENV PUBLISH_IP_RANGE="192.168.0.0/16"
COPY build /build
RUN apk --no-cache add nginx-mod-rtmp ffmpeg && \
rm -rf "$NGINX_CONFD_DIR/daemon" "$NGINX_CONFD_DIR/server" && \
$RSYNC_MOVE /build/scripts/ /scripts/ && \
$RSYNC_MOVE /build/conf/nginx/nginx.conf "$NGINX_CONF_FILE" && \
$RSYNC_MOVE /build/conf/nginx/http.d/ "$NGINX_CONFD_DIR/"
EXPOSE 1935
LABEL ca.unb.lib.generator="nginx" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="A lightweight docker-based nginx based RTMP relay/encoder for streaming simultaneously to Youtube, Twitch, and other services." \
org.label-schema.name="rtmp-multistream" \
org.label-schema.url="https://github.com/jacobsanford/docker-rtmp-multistream" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/jacobsanford/docker-rtmp-multistream" \
org.label-schema.version=$VERSION \
org.opencontainers.image.authors="jsanford@unb.ca" \
org.opencontainers.image.source="https://github.com/jacobsanford/docker-rtmp-multistream"