add ffmpeg to dockerfile and edit README

This commit is contained in:
Francesco Grazioso 2024-04-12 13:00:44 +02:00
parent 721076ef55
commit 8c1dc3fcfe
2 changed files with 16 additions and 1 deletions

View File

@ -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)

View File

@ -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"]