From 657bd5f56377aec78a1dc2ca2d7860c271d59760 Mon Sep 17 00:00:00 2001 From: tmddn3070 Date: Sun, 26 Nov 2023 00:57:41 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=B4=ED=97=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Christmas/discord.py | 6 +----- Dockerfile | 24 ++++++++++++++++++++++++ requirement.txt | 7 +++++++ 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 Dockerfile create mode 100644 requirement.txt diff --git a/Christmas/discord.py b/Christmas/discord.py index 15523b5..a26e932 100644 --- a/Christmas/discord.py +++ b/Christmas/discord.py @@ -15,8 +15,4 @@ class Christmas(AutoShardedBot): kwargs.update({"token": self.ctx.config.TOKEN}) super().run(*args, **kwargs) - - - - - + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c9e5907 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM python:3.12-alpine AS Prepare + +RUN apk add --no-cache \ + build-base \ + libffi-dev \ + openssl-dev \ + python3-dev \ + rust \ + cargo + +RUN pip install --upgrade pip +RUN pip install -r requirements.txt + +FROM python:3.12-alpine AS Main + +COPY --from=Prepare /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages +COPY --from=Prepare /usr/local/bin /usr/local/bin + +COPY . /app +WORKDIR /app + +CMD ["python", "-m", "Christmas"] + + diff --git a/requirement.txt b/requirement.txt new file mode 100644 index 0000000..8b0ea62 --- /dev/null +++ b/requirement.txt @@ -0,0 +1,7 @@ +py-cord +motor +uvloop +korcen +nanoid +pendulum +Wavelink \ No newline at end of file