This commit is contained in:
tmddn3070 2023-11-26 00:57:41 +09:00
parent cd79087626
commit 657bd5f563
3 changed files with 32 additions and 5 deletions

View File

@ -15,8 +15,4 @@ class Christmas(AutoShardedBot):
kwargs.update({"token": self.ctx.config.TOKEN})
super().run(*args, **kwargs)

24
Dockerfile Normal file
View File

@ -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"]

7
requirement.txt Normal file
View File

@ -0,0 +1,7 @@
py-cord
motor
uvloop
korcen
nanoid
pendulum
Wavelink