vod-rtmp/frontend/Dockerfile

23 lines
528 B
Text
Raw Normal View History

2021-10-10 18:57:54 -04:00
FROM python:3
2021-10-11 14:15:52 -04:00
2021-10-10 18:57:54 -04:00
RUN pip --no-cache-dir install \
flask \
pyyaml \
uwsgi
2021-10-11 14:15:52 -04:00
RUN mkdir /code
2021-10-10 18:57:54 -04:00
COPY ./app /code
2021-10-11 14:15:52 -04:00
2021-10-10 18:57:54 -04:00
ADD https://github.com/bilibili/flv.js/releases/download/v1.5.0/flv.min.js /code/static/flv.min.js
RUN chmod 644 /code/static/flv.min.js
2021-10-11 14:15:52 -04:00
RUN mkdir -p /tmp/hls.js && \
cd /tmp/hls.js && \
2021-10-11 14:27:53 -04:00
wget -O hls.js.zip https://github.com/video-dev/hls.js/releases/download/v1.0.11/release.zip && \
unzip hls.js.zip
2021-10-11 14:21:55 -04:00
ADD /tmp/hls.js/dist/hls.min.js /code/static/hls.min.js
2021-10-11 14:15:52 -04:00
2021-10-10 18:57:54 -04:00
USER nobody
WORKDIR /code
EXPOSE 5001