From 9f9a484613dcd2ee534841fd780fbaa1c73af44f Mon Sep 17 00:00:00 2001 From: crate Date: Fri, 6 Jun 2025 16:39:10 -0500 Subject: [PATCH] change Dockerfile to use python alpine img --- Dockerfile | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/Dockerfile b/Dockerfile index 534855c..a658fbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,29 @@ -FROM python:3.11.10-bookworm - +FROM python:3.11.10-alpine WORKDIR /usr/src/app -RUN apt update -RUN apt install -y iputils-ping -RUN apt install -y dnsutils -RUN apt install -y nmap -RUN apt install -y python3 -RUN apt install -y python3-pip -RUN pip3 install discord -RUN pip3 install openai -RUN pip3 install aiohttp -RUN pip3 install requests -RUN pip3 install wikipedia -RUN pip3 install pillow -RUN pip3 install qrcode +RUN apk update && \ + apk add --no-cache \ + iputils \ + bind-tools \ + nmap \ + gcc \ + musl-dev \ + jpeg-dev \ + zlib-dev \ + freetype-dev \ + lcms2-dev \ + openjpeg-dev \ + tiff-dev \ + tk-dev \ + tcl-dev -CMD [ "python", "garfmain.py" ] +RUN pip3 install --no-cache-dir \ + discord \ + openai \ + aiohttp \ + requests \ + wikipedia \ + pillow \ + qrcode + +CMD [ "python", "garfmain.py" ] \ No newline at end of file