Optimize Docker image by cleaning apt cache after installing dependencies

This commit is contained in:
mrT23
2025-05-02 09:16:43 +03:00
parent 8edacf08bb
commit 5a3010389d

View File

@ -1,6 +1,6 @@
FROM python:3.12.10-slim AS base
RUN apt update && apt install --no-install-recommends -y git curl && rm -rf /var/lib/apt/lists/*
RUN apt update && apt install --no-install-recommends -y git curl && apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
ADD pyproject.toml .