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 && \
|
|
|
|
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 &&
|
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
|
2021-10-10 20:48:23 -04:00
|
|
|
EXPOSE 5001
|