diff --git a/README.md b/README.md index efafa25..ee21a63 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,8 @@ You can chat, help improve this repo, or just hang around for some fun in the ** * [Requirement](#requirement) * [Usage](#usage) * [Update](#update) -* [USAGE AND OPTIONS](#options) +* [CONFIGURATION](#Configuration) +* [DOCKER](#docker) * [TUTORIAL](#tutorial) ## Requirement @@ -187,5 +188,17 @@ You can choose different vars: * `%(episode_name)` : Is the name of the episode >NOTE: You don't need to add .mp4 at the end +## Docker +You can run the script in a docker container, to build the image just run +``` +docker build -t streaming-community-api . +``` + +and to run it use + +``` +docker run -it -p 8000:8000 streaming-community-api +``` + ## Tutorial For a detailed walkthrough, refer to the [video tutorial](https://www.youtube.com/watch?v=Ok7hQCgxqLg&ab_channel=Nothing) diff --git a/dockerfile b/dockerfile index 6f9389d..2fa8359 100644 --- a/dockerfile +++ b/dockerfile @@ -6,6 +6,8 @@ WORKDIR /app ENV TEMP /tmp RUN mkdir -p $TEMP +RUN apt-get update && apt-get install -y ffmpeg + RUN pip install --no-cache-dir -r requirements.txt CMD ["python", "run.py"] \ No newline at end of file