From 17b1dde05062fa728e29838dfad29f50681238e3 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 23 Jun 2025 16:27:43 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(summary)=20dry=20docker=20im?= =?UTF-8?q?age=20summary=20by=20extracting=20base=20image=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eliminate duplication by using variables for base image references to improve maintainability and reduce configuration redundancy. --- src/summary/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/summary/Dockerfile b/src/summary/Dockerfile index 59695e6c..93e4a99f 100644 --- a/src/summary/Dockerfile +++ b/src/summary/Dockerfile @@ -1,4 +1,6 @@ -FROM python:3.13-slim AS builder +FROM python:3.13-slim AS base + +FROM base AS builder WORKDIR /app @@ -6,7 +8,7 @@ COPY pyproject.toml . RUN pip3 install --no-cache-dir . -FROM python:3.13-slim AS production +FROM base AS production WORKDIR /app