17 lines
407 B
Docker
17 lines
407 B
Docker
FROM golang:1.17.2
|
|
|
|
## 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
|
|
|
|
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
|