Add prelimary docker files

This commit is contained in:
Joshua Arulsamy 2020-07-26 22:07:37 -06:00
parent 59a32e688e
commit 4043c972c0
2 changed files with 30 additions and 0 deletions

17
Dockerfile Normal file
View 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
View 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