From d5eacb9d17fcb2be4c9805a1b80a3aa9d5c3b812 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 8 Aug 2017 15:08:20 -0700 Subject: [PATCH] moving the source code into a folder called app and changing the docker file to launch it from there on startup --- Dockerfile | 4 ++-- dragon-bot.py => app/dragon-bot.py | 1 + help_methods.py => app/help_methods.py | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename dragon-bot.py => app/dragon-bot.py (99%) rename help_methods.py => app/help_methods.py (100%) diff --git a/Dockerfile b/Dockerfile index 9df5271e..acde5500 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,5 @@ RUN apt-get update && apt-get install -y curl &&\ pip3 install requests discord.py docker pybooru && \ curl -Lks get.docker.com | bash -ADD dragon-bot.py / -CMD python dragon-bot.py \ No newline at end of file +ADD app /app +CMD python app/dragon-bot.py \ No newline at end of file diff --git a/dragon-bot.py b/app/dragon-bot.py similarity index 99% rename from dragon-bot.py rename to app/dragon-bot.py index 79a31c4c..e725de65 100644 --- a/dragon-bot.py +++ b/app/dragon-bot.py @@ -6,6 +6,7 @@ import help_methods import discord import docker from pybooru import Danbooru + # Client object client = discord.Client() diff --git a/help_methods.py b/app/help_methods.py similarity index 100% rename from help_methods.py rename to app/help_methods.py