jaimeMF / youtube-dl-api-server

A youtube-dl REST API server
https://youtube-dl-api-server.readthedocs.org/
The Unlicense
364 stars 214 forks source link

Add dockerfile and docker compose file #78

Open grenaad opened 4 years ago

grenaad commented 4 years ago

You can also add a reference to docker hub to make starting the server even more convenient

Reference issues: #66

ja2142 commented 2 years ago

Docker container would be great, but I think it'd better to:

Here's what I came up with:

FROM frolvlad/alpine-python3:latest

WORKDIR /app

ADD . /app
RUN pip3 install gunicorn
RUN pip3 install -e .

EXPOSE 8080

ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:8080", "youtube_dl_server.app:app"]

Though, at this point I doubt owner of this repo will merge anything...