youtube-dl-api-server icon indicating copy to clipboard operation
youtube-dl-api-server copied to clipboard

Add dockerfile and docker compose file

Open grenaad opened this issue 5 years ago • 1 comments

  • Adds a Dockerfile to easily compile and run the server on any platform.
  • Adds docker-compose to make starting the server as easy as: docker-compose up -d

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

Reference issues: #66

grenaad avatar May 03 '20 11:05 grenaad

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

  • make it from local files instead of installing git,
  • use a production server.

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...

ja2142 avatar Apr 10 '22 23:04 ja2142