♻️(summary) dry docker image summary by extracting base image name
Eliminate duplication by using variables for base image references to improve maintainability and reduce configuration redundancy.
This commit is contained in:
committed by
aleb_the_flash
parent
0b25374cef
commit
17b1dde050
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user