mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-10 14:06:44 +03:00
Create dockerfile
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
FROM python:3.10-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt requirements.txt
|
||||||
|
|
||||||
|
RUN pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
ENTRYPOINT [ "python3", "main.py"]
|
||||||
20
readme.md
20
readme.md
@@ -7,8 +7,26 @@ This project is written in asycronous python and should be pretty quick.
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
`WIP`
|
## Setup
|
||||||
|
|
||||||
|
You need to retrieve airplay keys to be able to connect to the Apple TV. (It will be made simpler in the future)
|
||||||
|
For now, use `atvremote`, a script included in pyatv:
|
||||||
|
1. atvremote scan
|
||||||
|
2. atvremote pair --protocol airplay --id `identifier you got on the previous step`
|
||||||
|
|
||||||
|
Get [YouTube api key](https://developers.google.com/youtube/registering_an_application)
|
||||||
|
|
||||||
|
Edit config.json.template and save it as config.json (this is the /PATH_TO_YOUR_CONFIG.json file)
|
||||||
|
## Run
|
||||||
|
```sh
|
||||||
|
docker pull ghcr.io/dmunozv04/iSponsorBlockTV/isponsorblocktv
|
||||||
|
docker run -d \
|
||||||
|
--name iSponsorBlockTV \
|
||||||
|
--restart=unless-stopped \
|
||||||
|
--network=host \
|
||||||
|
-v /PATH_TO_YOUR_CONFIG.json:/app/config.json \
|
||||||
|
ghcr.io/dmunozv04/iSponsorBlockTV/isponsorblocktv
|
||||||
|
```
|
||||||
### From source
|
### From source
|
||||||
|
|
||||||
You need to install [python](https://www.python.org/downloads/) first, and to make it available in your PATH. After, clone the repo.
|
You need to install [python](https://www.python.org/downloads/) first, and to make it available in your PATH. After, clone the repo.
|
||||||
|
|||||||
@@ -1,4 +1,30 @@
|
|||||||
pyatv
|
aiodns==3.0.0
|
||||||
aiohttp[speedups]
|
aiohttp==3.8.1
|
||||||
aiodns
|
aiosignal==1.2.0
|
||||||
async-cache
|
async-cache==1.1.1
|
||||||
|
async-timeout==4.0.2
|
||||||
|
attrs==21.4.0
|
||||||
|
bitarray==2.3.5
|
||||||
|
Brotli==1.0.9
|
||||||
|
cchardet==2.1.7
|
||||||
|
certifi==2021.10.8
|
||||||
|
cffi==1.15.0
|
||||||
|
charset-normalizer==2.0.11
|
||||||
|
cryptography==36.0.1
|
||||||
|
frozenlist==1.3.0
|
||||||
|
idna==3.3
|
||||||
|
ifaddr==0.1.7
|
||||||
|
mediafile==0.9.0
|
||||||
|
miniaudio==1.46
|
||||||
|
multidict==6.0.2
|
||||||
|
mutagen==1.45.1
|
||||||
|
protobuf==3.19.4
|
||||||
|
pyatv==0.10.0
|
||||||
|
pycares==4.1.2
|
||||||
|
pycparser==2.21
|
||||||
|
requests==2.27.1
|
||||||
|
six==1.16.0
|
||||||
|
srptools==1.0.1
|
||||||
|
urllib3==1.26.8
|
||||||
|
yarl==1.7.2
|
||||||
|
zeroconf==0.38.3
|
||||||
|
|||||||
Reference in New Issue
Block a user