subsyt/Containerfile
Viktor Varland 97a299fe0b
All checks were successful
build / build (push) Successful in 1m53s
feat: support CONFIG env variable for file
2025-03-29 09:48:23 +01:00

47 lines
873 B
Docker

FROM docker.io/library/golang:1.24-alpine as builder
WORKDIR /src
COPY go.* .
RUN go mod download
COPY . .
RUN go build -o /src/build/subsyt .
FROM docker.io/library/archlinux:latest
RUN pacman -Syu --noconfirm \
yt-dlp \
ffmpeg \
rtmpdump \
atomicparsley \
aria2 \
python-mutagen \
python-pycryptodome \
python-pycryptodomex \
python-websockets \
python-brotli \
python-brotlicffi \
python-xattr \
python-pyxattr
COPY <<-EOT /data/config.toml
dry_run = false
out_dir = "/data/vids"
[provider]
[provider.youtube]
cmd = "yt-dlp"
url = "https://www.youtube.com"
throttle = 1
range = "1:5:1"
after_date = "20250326"
cookies = "/data/cookies.txt"
opml_file = "/data/opml.xml"
EOT
COPY --from=builder /src/build/subsyt /app/subsyt
WORKDIR /app
ENTRYPOINT [ "/app/subsyt" ]