Moved docker image for pete tong to this repository

This commit is contained in:
florian 2025-11-07 12:16:44 +01:00
parent ab603c0d9a
commit fcafcfbf5a
3 changed files with 23 additions and 1 deletions

20
src/petetong/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM ubuntu:24.04
RUN apt update && \
apt install -y python3 ffmpeg software-properties-common curl keychain ca-certificates && \
add-apt-repository ppa:m-grant-prg/utils && \
apt update -y && apt install -y get-iplayer
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && mv /root/.local/bin/uv /usr/local/bin/uv && rm /uv-installer.sh
RUN userdel ubuntu && groupadd -r florian -g 1000 && \
useradd -u 1000 -r -g florian -m -d /home/florian -s /bin/bash florian && \
mkdir /app && chown -R florian:florian /app
USER florian
WORKDIR /home/florian
COPY requirements.txt ./
RUN uv venv && uv pip install -r requirements.txt
WORKDIR /app

View File

@ -1,4 +1,4 @@
#!/bin/bash -e
docker run --network host --rm -v /home/florian/github/service-podcasts/src/petetong:/app ytdlp:latest python3 /app/download_episode.py
docker run --network host --rm -v /home/florian/github/service-podcasts/src/petetong:/app bbcr1:latest /home/florian/.venv/bin/python /app/download_episode.py
mv /home/florian/github/service-podcasts/src/petetong/*.mp3 "/var/lib/audiobookshelf/music/Pete Tong/"

View File

@ -0,0 +1,2 @@
dotenv
requests