include hls.min.js into frontend
This commit is contained in:
parent
881d20f6d4
commit
06252c097b
1 changed files with 11 additions and 1 deletions
|
@ -1,12 +1,22 @@
|
||||||
FROM python:3
|
FROM python:3
|
||||||
RUN mkdir /code
|
|
||||||
RUN pip --no-cache-dir install \
|
RUN pip --no-cache-dir install \
|
||||||
flask \
|
flask \
|
||||||
pyyaml \
|
pyyaml \
|
||||||
uwsgi
|
uwsgi
|
||||||
|
|
||||||
|
RUN mkdir /code
|
||||||
COPY ./app /code
|
COPY ./app /code
|
||||||
|
|
||||||
ADD https://github.com/bilibili/flv.js/releases/download/v1.5.0/flv.min.js /code/static/flv.min.js
|
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
|
RUN chmod 644 /code/static/flv.min.js
|
||||||
|
|
||||||
|
RUN mkdir -p /tmp/hls.js && \
|
||||||
|
cd /tmp/hls.js && \
|
||||||
|
wget -O hls.js.tar.gz https://github.com/video-dev/hls.js/releases/download/v1.0.11/release.zip && \
|
||||||
|
tar zxvf hls.js.tar.gz &&
|
||||||
|
add /tmp/hls.js/dist/hls.min.js /code/static/hls.min.js
|
||||||
|
|
||||||
USER nobody
|
USER nobody
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
EXPOSE 5001
|
EXPOSE 5001
|
||||||
|
|
Loading…
Reference in a new issue