forked from livepeer/runner-app-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 691 Bytes
/
Copy pathDockerfile
File metadata and controls
22 lines (16 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Echo example app (trickle realtime video).
FROM python:3.12-slim
# Flush stdout/stderr immediately so output isn't block-buffered in `docker logs`.
ENV PYTHONUNBUFFERED=1
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
# livepeer-gateway SDK isn't on PyPI yet; install from Git. av (PyAV) ships its
# own ffmpeg; opencv-python-headless needs no system GUI libs.
RUN pip install --no-cache-dir \
"livepeer-gateway @ git+https://github.com/livepeer/livepeer-python-gateway@ja/live-runner" \
av opencv-python-headless aiohttp
WORKDIR /app
COPY runner.py client.py ./
EXPOSE 8989
ENTRYPOINT ["python", "runner.py"]