diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f330945 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7746aaa --- /dev/null +++ b/docker-compose.yml @@ -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