From 4043c972c07cde1b1119f994eb1b72acaa8d217c Mon Sep 17 00:00:00 2001 From: Joshua Arulsamy Date: Sun, 26 Jul 2020 22:07:37 -0600 Subject: [PATCH] :sparkles: Add prelimary docker files --- Dockerfile | 17 +++++++++++++++++ docker-compose.yml | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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