forked from mvarhola/comfy-channel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.raspi
46 lines (35 loc) · 1.5 KB
/
Dockerfile.raspi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM alpine:latest
# Get host instance IP
ENV SERVER_IP="host.docker.internal"
# Download and install static ARM64 build of ffmpeg with all the fixins
RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-armhf-static.tar.xz
RUN tar -xf /ffmpeg-release-armhf-static.tar.xz
RUN ln -s /ffmpeg-4.2.3-armhf-static/ffmpeg /usr/bin/ffmpeg
# Install Python3 and Pip
# from frolvlad/alpine-python3
RUN apk add --no-cache git python3 py-psutil libmediainfo tzdata wget && \
python3 -m ensurepip && \
rm -r /usr/lib/python*/ensurepip && \
pip3 install --upgrade pip setuptools && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
# Set system time to Chicago Time (can be changed)
RUN cp /usr/share/zoneinfo/America/Chicago /etc/localtime
# Set the working directory
WORKDIR /comfy-channel
# Clone the comfy-channel git repo
ADD src /comfy-channel/src/
ADD upnext /comfy-channel/upnext/
ADD fonts /comfy-channel/fonts/
ADD playout.ini /comfy-channel/
RUN ls
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r /comfy-channel/src/requirements.txt
# Reset the entry point from jrottenberg/ffmpeg
ENTRYPOINT []
# Expose RTMP port
EXPOSE 1935
# Run ComfyChannel.py when the container launches
#CMD ["python","-u","src/ComfyChannel.py", "-o", "echo ${output_location}"]
CMD python -u src/ComfyChannel.py -o "rtmp://"${SERVER_IP}