From 2d659873068e408e16669c1d35ba46ba28141f51 Mon Sep 17 00:00:00 2001 From: jsl12 <32917998+jsl12@users.noreply.github.com> Date: Fri, 21 Jan 2022 15:27:42 -0600 Subject: [PATCH] added docker stuff to get him off the ground --- Dockerfile | 17 +++++++++++++++++ docker-compose.yml | 12 ++++++++++++ requirements.txt | 9 +++++++-- 3 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d6bfbb3 --- /dev/null +++ b/Dockerfile @@ -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" ] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f3ae6f7 --- /dev/null +++ b/docker-compose.yml @@ -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 diff --git a/requirements.txt b/requirements.txt index e72f020..b441fd9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,8 @@ python-dotenv -discordpy -nextcord \ No newline at end of file +discord.py +# nextcord +pandas +nltk +beautifulsoup4 +requests +stockquotes