added docker stuff to get him off the ground

This commit is contained in:
jsl12
2022-01-21 15:27:42 -06:00
parent 86066a0d35
commit 2d65987306
3 changed files with 36 additions and 2 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM python:latest
RUN python -m pip install --upgrade pip
RUN pip install pandas
RUN pip install discord.py
RUN pip install nltk
# below fuckery from stockquotes
RUN pip install beautifulsoup4
RUN pip install requests
WORKDIR /usr/src/app
COPY ./ ./
RUN pip install -r requirements.txt
CMD [ "python", "main.py" ]

12
docker-compose.yml Normal file
View File

@@ -0,0 +1,12 @@
version: '3.8'
services:
kwaylon:
container_name: kwaylon
image: kwaylon:latest
build: ./
network_mode: host
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
# - /mnt/dietpi_userdata/kwaylon:/usr/src/app
restart: unless-stopped

View File

@@ -1,3 +1,8 @@
python-dotenv python-dotenv
discordpy discord.py
nextcord # nextcord
pandas
nltk
beautifulsoup4
requests
stockquotes