radio-bullshit/Dockerfile

39 lines
1007 B
Docker
Raw Normal View History

2021-06-15 21:27:04 +00:00
# docker build . -t radio-bullshit && docker run -it --rm -p 8000:8000 -v `pwd`/jingles:/jingles -v `pwd`/songs:/songs radio-bullshit
FROM python:3.9
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
2021-06-15 21:27:04 +00:00
RUN apt-get install -y icecast2 ices2 ffmpeg
RUN pip install jinja2 j2cli
WORKDIR /config
RUN adduser zambla
COPY icecast.xml.jinja .
COPY ices.xml.jinja .
2021-06-15 21:55:38 +00:00
COPY index.html /usr/share/icecast2/web
2021-06-15 22:13:28 +00:00
COPY favicon.ico /usr/share/icecast2/web
COPY next_song.py /opt
COPY yt_sync.py /opt
2021-06-12 11:08:23 +00:00
COPY ultrasync.sh /opt
2021-06-12 11:08:23 +00:00
RUN chmod +x /opt/yt_sync.py /opt/next_song.py /opt/ultrasync.sh
2021-06-15 21:27:04 +00:00
RUN mkdir -p /songs /jingles /air-support /var/log/icecast
RUN chown -R zambla:zambla /config
RUN chown -R zambla:zambla /opt
RUN chown -R zambla:zambla /songs
RUN chown -R zambla:zambla /jingles
RUN chown -R zambla:zambla /var/log/icecast
RUN chown -R zambla:zambla /usr/share/icecast2
2021-06-15 21:27:04 +00:00
ADD air-support /air-support
COPY entrypoint.sh /opt/entrypoint.sh
RUN chmod +x /opt/entrypoint.sh
2021-06-12 11:08:23 +00:00
ENTRYPOINT [ "/opt/entrypoint.sh" ]