From 8c0a426988ec22489a87594ec9995f3b732594b4 Mon Sep 17 00:00:00 2001 From: abs3nt Date: Sat, 28 Jan 2023 15:20:27 -0800 Subject: [PATCH] docker file better --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f58506d..3f64097 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ -FROM python:3 -FROM gorialis/discord.py +FROM alpine +ENV PYTHONUNBUFFERED=1 +RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python +RUN python3 -m ensurepip +RUN pip3 install --no-cache --upgrade pip setuptools discord.py RUN mkdir -p /usr/src/bot WORKDIR /usr/src/bot COPY . . -CMD [ "python3", "bot.py" ] +CMD [ "python", "bot.py" ]