mirror of
https://github.com/jarulsamy/Plex-Bot.git
synced 2024-08-19 15:01:55 +02:00
✨ Add prelimary docker files
This commit is contained in:
parent
59a32e688e
commit
4043c972c0
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
# Python 3.7
|
||||||
|
FROM python:3.7
|
||||||
|
|
||||||
|
# All source code
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
# Copy of dependency manifest
|
||||||
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
# Install all dependencies.
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
# Copy PlexBot over to src.
|
||||||
|
COPY PlexBot/ PlexBot
|
||||||
|
|
||||||
|
# Run the bot
|
||||||
|
CMD ["python", "-OO", "-m", "PlexBot"]
|
13
docker-compose.yml
Normal file
13
docker-compose.yml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
version: "3"
|
||||||
|
services:
|
||||||
|
plex-bot:
|
||||||
|
container_name: "PlexBot"
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=America/Denver
|
||||||
|
# Required dir for configuration files
|
||||||
|
volumes:
|
||||||
|
- "./config:/config:ro"
|
||||||
|
restart: unless-stopped
|
Loading…
Reference in New Issue
Block a user