1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00
mxpv-podsync/Dockerfile

29 lines
628 B
Docker
Raw Permalink Normal View History

2023-05-05 15:24:36 -07:00
FROM golang:1.20 as builder
2019-11-15 10:51:05 -08:00
2023-05-05 15:47:54 -07:00
ENV TAG="nightly"
ENV COMMIT=""
2023-05-05 15:24:36 -07:00
WORKDIR /build
COPY . .
2023-05-05 15:24:36 -07:00
RUN make build
# Download youtube-dl
RUN wget -O /usr/bin/yt-dlp https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp && \
2023-05-05 15:24:36 -07:00
chmod +x /usr/bin/yt-dlp
FROM alpine:3.17
WORKDIR /app
RUN apk --no-cache add ca-certificates python3 py3-pip ffmpeg tzdata \
# https://github.com/golang/go/issues/59305
libc6-compat && ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
COPY --from=builder /usr/bin/yt-dlp /usr/bin/youtube-dl
COPY --from=builder /build/bin/podsync /app/podsync
ENTRYPOINT ["/app/podsync"]
CMD ["--no-banner"]