From ba23c09167313f394caf2e2ed43b90944e07c354 Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Wed, 3 Mar 2021 16:58:46 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 10 ++++------ cogs/jikan.py | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index b65fc37..a4cc926 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM python:3.8 +FROM python:3.8-alpine -RUN apt-get update && apt-get install -y ffmpeg +RUN apk add ffmpeg \ + && python3 -m pip install -r requirements.txt WORKDIR /data - COPY . /data ENV PREFIX /data @@ -12,6 +12,4 @@ ENV REDDIT_CLIENT_ID /data ENV REDDIT_CLIENT_SECRET /data ENV REDDIT_CLIENT_USERAGENT /data -RUN python3 -m pip install -r requirements.txt - -CMD python3 aquabot.py +CMD [ "python3", "./aquabot.py" ] \ No newline at end of file diff --git a/cogs/jikan.py b/cogs/jikan.py index d16d5a3..e6f1c34 100644 --- a/cogs/jikan.py +++ b/cogs/jikan.py @@ -10,7 +10,6 @@ from jikanpy import Jikan jikan = Jikan() - class Jikan(commands.Cog): def __init__(self, bot): self.bot = bot