Add ENVs to dockerfile
parent
aeb86f6b85
commit
21fe4875eb
27
Dockerfile
27
Dockerfile
|
|
@ -1,5 +1,30 @@
|
||||||
FROM python:3-slim
|
FROM python:3-slim
|
||||||
|
|
||||||
|
ENV DRYRUN 'True'
|
||||||
|
ENV DEBUG 'True'
|
||||||
|
ENV DEBUG_LEVEL 'INFO'
|
||||||
|
ENV SLEEP_DURATION '3600'
|
||||||
|
ENV LOGFILE 'log.log'
|
||||||
|
|
||||||
|
ENV USER_MAPPING '{ "User Test": "User Test2" }'
|
||||||
|
ENV LIBRARY_MAPPING '{ "Shows Test": "TV Shows Test" }'
|
||||||
|
|
||||||
|
ENV PLEX_BASEURL 'http://localhost:32400'
|
||||||
|
ENV PLEX_TOKEN ''
|
||||||
|
ENV PLEX_USERNAME ''
|
||||||
|
ENV PLEX_PASSWORD ''
|
||||||
|
ENV PLEX_SERVERNAME ''
|
||||||
|
|
||||||
|
ENV JELLYFIN_BASEURL 'http://localhost:8096'
|
||||||
|
ENV JELLYFIN_TOKEN ''
|
||||||
|
|
||||||
|
ENV BLACKLIST_LIBRARY ''
|
||||||
|
ENV WHITELIST_LIBRARY ''
|
||||||
|
ENV BLACKLIST_LIBRARY_TYPE ''
|
||||||
|
ENV WHITELIST_LIBRARY_TYPE ''
|
||||||
|
ENV BLACKLIST_USERS ''
|
||||||
|
ENV WHITELIST_USERS ''
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./requirements.txt ./
|
COPY ./requirements.txt ./
|
||||||
|
|
@ -7,4 +32,4 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
CMD ["python", "-u", "main.py"]
|
CMD ["python", "-u", "main.py"]
|
||||||
|
|
|
||||||
3
main.py
3
main.py
|
|
@ -380,6 +380,7 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
main()
|
main()
|
||||||
logger(f"Looping in {sleep_duration}")
|
logger(f"Looping in {sleep_duration}")
|
||||||
|
sleep(sleep_duration)
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
if isinstance(error, list):
|
if isinstance(error, list):
|
||||||
for message in error:
|
for message in error:
|
||||||
|
|
@ -394,5 +395,3 @@ if __name__ == "__main__":
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logger("Exiting", log_type=0)
|
logger("Exiting", log_type=0)
|
||||||
os._exit(0)
|
os._exit(0)
|
||||||
|
|
||||||
sleep(sleep_duration)
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import re
|
import re
|
||||||
from collections import ChainMap
|
|
||||||
|
|
||||||
from plexapi.server import PlexServer
|
from plexapi.server import PlexServer
|
||||||
from plexapi.myplex import MyPlexAccount
|
from plexapi.myplex import MyPlexAccount
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue