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 && \
|
|
|
|
cp dist/hls.min.js /code/static/hls.min.js
|
|
|
|
RUN chmod 644 /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
|