-
-
Notifications
You must be signed in to change notification settings - Fork 303
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (20 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
30 lines (20 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM golang:1.25 AS builder
ENV TAG="nightly"
ENV COMMIT=""
WORKDIR /build
COPY . .
RUN make build
# Download yt-dlp
RUN wget -O /usr/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp && \
chmod a+rwx /usr/bin/yt-dlp
# Alpine 3.22 will go EOL on 2027-05-01
FROM alpine:3.22
WORKDIR /app
# deno is required for yt-dlp (ref: https://github.com/yt-dlp/yt-dlp/issues/14404)
RUN apk --no-cache add ca-certificates python3 py3-pip ffmpeg tzdata libc6-compat deno
RUN chmod 777 /usr/local/bin
COPY --from=builder /usr/bin/yt-dlp /usr/local/bin/youtube-dl
COPY --from=builder /build/bin/podsync /app/podsync
COPY --from=builder /build/html/index.html /app/html/index.html
ENTRYPOINT ["/app/podsync"]
CMD ["--no-banner"]