Create dockerfile

This commit is contained in:
dmunozv04
2022-02-02 19:51:47 +01:00
parent a1f439a0a5
commit f632d71070
3 changed files with 62 additions and 5 deletions

13
Dockerfile Normal file
View 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"]

View File

@@ -7,8 +7,26 @@ This project is written in asycronous python and should be pretty quick.
## Installation
### 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
You need to install [python](https://www.python.org/downloads/) first, and to make it available in your PATH. After, clone the repo.

View File

@@ -1,4 +1,30 @@
pyatv
aiohttp[speedups]
aiodns
async-cache
aiodns==3.0.0
aiohttp==3.8.1
aiosignal==1.2.0
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