Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dockerfile and docker compose file #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add dockerfile and docker compose file #78

wants to merge 1 commit into from

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.

None yet

2 participants