Skip to content

Add dockerfile and docker compose file#78

Open
grenaad wants to merge 1 commit intojaimeMF:masterfrom
grenaad:add_docker
Open

Add dockerfile and docker compose file#78
grenaad wants to merge 1 commit intojaimeMF:masterfrom
grenaad:add_docker

Conversation

@grenaad
Copy link

@grenaad grenaad commented May 3, 2020

  • 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 grenaad changed the title Add dockefile and docker compose file Add dockerfile and docker compose file May 3, 2020
@ja2142
Copy link

ja2142 commented Apr 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants