Moved docker image for pete tong to this repository
This commit is contained in:
parent
ab603c0d9a
commit
fcafcfbf5a
20
src/petetong/Dockerfile
Normal file
20
src/petetong/Dockerfile
Normal 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
|
||||||
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash -e
|
#!/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/"
|
mv /home/florian/github/service-podcasts/src/petetong/*.mp3 "/var/lib/audiobookshelf/music/Pete Tong/"
|
||||||
|
|||||||
2
src/petetong/requirements.txt
Normal file
2
src/petetong/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
dotenv
|
||||||
|
requests
|
||||||
Loading…
x
Reference in New Issue
Block a user