34 lines
841 B
Docker
34 lines
841 B
Docker
# 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.14
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update
|
|
RUN apt-get install -y ffmpeg liquidsoap
|
|
|
|
WORKDIR /
|
|
|
|
RUN adduser zambla
|
|
|
|
COPY radio.liq /opt/radio.liq
|
|
COPY yt_sync.py /opt
|
|
COPY ultrasync.sh /opt
|
|
COPY je_te_met_en_pls.py /opt
|
|
COPY www /var/www
|
|
|
|
RUN curl -fsSL https://deno.land/install.sh | sh
|
|
ENV DENO_INSTALL="/$HOME/.deno"
|
|
ENV PATH="$DENO_INSTALL/bin:$PATH"
|
|
|
|
RUN chmod +x /opt/yt_sync.py /opt/ultrasync.sh /opt/je_te_met_en_pls.py
|
|
|
|
RUN mkdir -p /songs /jingles /air-support /var/log/liquidsoap
|
|
|
|
RUN chown -R zambla:zambla /var/log/liquidsoap
|
|
|
|
ADD air-support /air-support
|
|
|
|
COPY entrypoint.sh /opt/entrypoint.sh
|
|
RUN chmod +x /opt/entrypoint.sh
|
|
|
|
ENTRYPOINT [ "/opt/entrypoint.sh" ]
|