vod-rtmp/frontend/Dockerfile

31 lines
833 B
Text
Raw Permalink 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 && \
2021-10-11 14:50:37 -04:00
unzip hls.js.zip && \
2021-10-12 15:36:58 -04:00
cp dist/hls.js /code/static/hls.js && \
cp dist/hls.js.map /code/static/hls.js.map && \
2021-10-11 16:15:48 -04:00
cp dist/hls.min.js /code/static/hls.min.js && \
cp dist/hls.min.js.map /code/static/hls.min.js.map
2021-10-12 15:36:58 -04:00
RUN chmod 644 /code/static/hls.js
RUN chmod 644 /code/static/hls.js.map
2021-10-11 14:50:37 -04:00
RUN chmod 644 /code/static/hls.min.js
2021-10-11 16:15:48 -04:00
RUN chmod 644 /code/static/hls.min.js.map
2021-10-11 14:15:52 -04:00
2021-10-10 18:57:54 -04:00
USER nobody
WORKDIR /code
EXPOSE 5001