From 3097e1e04e5d2a4ca27cb25b92556c4750ef04ac Mon Sep 17 00:00:00 2001 From: DeOwl Date: Sun, 24 May 2026 22:33:56 +0300 Subject: [PATCH] migrated to lightweight python-slim over ubuntu --- dockerfile_build/Dockerfile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/dockerfile_build/Dockerfile b/dockerfile_build/Dockerfile index a988c34..72ecab3 100755 --- a/dockerfile_build/Dockerfile +++ b/dockerfile_build/Dockerfile @@ -1,19 +1,12 @@ +FROM python:3.11-slim-bookworm -FROM ubuntu:22.04 -# Install openbabel and python RUN apt-get update \ && apt-get install --yes --quiet --no-install-recommends \ - python3 \ - python3-pip \ + openbabel \ && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /var/local - COPY requirements.txt . - -# Install dependencies -RUN /usr/bin/python3 -m pip install --no-cache-dir -r requirements.txt - +RUN pip install --no-cache-dir -r requirements.txt COPY src . - CMD uvicorn app:app --host 0.0.0.0 --port ${PORT} --log-level warning