youtube-dl-service/backend/Dockerfile

18 lines
407 B
Text
Raw Normal View History

2021-11-03 09:47:23 +01:00
FROM golang:1.17.2
2021-11-03 15:24:12 +01:00
## Install yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
RUN chmod a+rx /usr/local/bin/yt-dlp
2021-11-03 09:33:07 +01:00
ENV PATH=$PATH:/src/yt-dls-backend/
RUN mkdir -p /src/yt-dls-backend
ADD . /src/yt-dls-backend
WORKDIR /src/yt-dls-backend
RUN go build -o yt-dls-backend *.go
ENTRYPOINT ["/src/yt-dls-backend/yt-dls-backend"]
EXPOSE 3000