vod-rtmp/frontend/Dockerfile

31 lines
833 B
Text
Raw Permalink Normal View History

2021-10-10 22:57:54 +00:00
FROM python:3
2021-10-11 18:15:52 +00:00
2021-10-10 22:57:54 +00:00
RUN pip --no-cache-dir install \
flask \
pyyaml \
uwsgi
2021-10-11 18:15:52 +00:00
RUN mkdir /code
2021-10-10 22:57:54 +00:00
COPY ./app /code
2021-10-11 18:15:52 +00:00
2021-10-10 22:57:54 +00: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 18:15:52 +00:00
RUN mkdir -p /tmp/hls.js && \
cd /tmp/hls.js && \
2021-10-11 18:27:53 +00:00
wget -O hls.js.zip https://github.com/video-dev/hls.js/releases/download/v1.0.11/release.zip && \
2021-10-11 18:50:37 +00:00
unzip hls.js.zip && \
2021-10-12 19:36:58 +00:00
cp dist/hls.js /code/static/hls.js && \
cp dist/hls.js.map /code/static/hls.js.map && \
2021-10-11 20:15:48 +00: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 19:36:58 +00:00
RUN chmod 644 /code/static/hls.js
RUN chmod 644 /code/static/hls.js.map
2021-10-11 18:50:37 +00:00
RUN chmod 644 /code/static/hls.min.js
2021-10-11 20:15:48 +00:00
RUN chmod 644 /code/static/hls.min.js.map
2021-10-11 18:15:52 +00:00
2021-10-10 22:57:54 +00:00
USER nobody
WORKDIR /code
EXPOSE 5001