mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
add ffmpeg to dockerfile and edit README
This commit is contained in:
parent
721076ef55
commit
8c1dc3fcfe
15
README.md
15
README.md
@ -15,7 +15,8 @@ You can chat, help improve this repo, or just hang around for some fun in the **
|
|||||||
* [Requirement](#requirement)
|
* [Requirement](#requirement)
|
||||||
* [Usage](#usage)
|
* [Usage](#usage)
|
||||||
* [Update](#update)
|
* [Update](#update)
|
||||||
* [USAGE AND OPTIONS](#options)
|
* [CONFIGURATION](#Configuration)
|
||||||
|
* [DOCKER](#docker)
|
||||||
* [TUTORIAL](#tutorial)
|
* [TUTORIAL](#tutorial)
|
||||||
|
|
||||||
## Requirement
|
## Requirement
|
||||||
@ -187,5 +188,17 @@ You can choose different vars:
|
|||||||
* `%(episode_name)` : Is the name of the episode
|
* `%(episode_name)` : Is the name of the episode
|
||||||
>NOTE: You don't need to add .mp4 at the end
|
>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
|
## Tutorial
|
||||||
For a detailed walkthrough, refer to the [video tutorial](https://www.youtube.com/watch?v=Ok7hQCgxqLg&ab_channel=Nothing)
|
For a detailed walkthrough, refer to the [video tutorial](https://www.youtube.com/watch?v=Ok7hQCgxqLg&ab_channel=Nothing)
|
||||||
|
@ -6,6 +6,8 @@ WORKDIR /app
|
|||||||
ENV TEMP /tmp
|
ENV TEMP /tmp
|
||||||
RUN mkdir -p $TEMP
|
RUN mkdir -p $TEMP
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y ffmpeg
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
CMD ["python", "run.py"]
|
CMD ["python", "run.py"]
|
Loading…
x
Reference in New Issue
Block a user