Restore ..

This commit is contained in:
Lovi 2024-06-14 17:25:41 +02:00
parent 4b88da9e1c
commit 51d046de13
2 changed files with 21 additions and 1 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
build-container:
docker build -t streaming-community-api .
run-container:
docker run --rm -it -p 8000:8000 -v ${LOCAL_DIR}:/app/Video -v ./config.json:/app/config.json streaming-community-api

View File

@ -29,6 +29,8 @@ Make sure you have the following prerequisites installed on your system:
* [ffmpeg](https://www.gyan.dev/ffmpeg/builds/) * [ffmpeg](https://www.gyan.dev/ffmpeg/builds/)
* [opnessl](https://www.openssl.org) or [pycryptodome](https://pypi.org/project/pycryptodome/) * [opnessl](https://www.openssl.org) or [pycryptodome](https://pypi.org/project/pycryptodome/)
* [nodejs](https://nodejs.org/)
## Installation ## Installation
Install the required Python libraries using the following command: Install the required Python libraries using the following command:
@ -206,6 +208,19 @@ By default the videos will be saved in `/app/Video` inside the container, if you
docker run -it -p 8000:8000 -v /path/to/download:/app/Video streaming-community-api docker run -it -p 8000:8000 -v /path/to/download:/app/Video streaming-community-api
``` ```
### Docker quick setup with Make
Inside the Makefile (install `make`) are already configured two commands to build and run the container:
```
make build-container
# set your download directory as ENV variable
make LOCAL_DIR=/path/to/download run-container
```
The `run-container` command mounts also the `config.json` file, so any change to the configuration file is reflected immediately without having to rebuild the image.
## 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)