From 93ccf42ed6f7561358f8d60352a82132c05d97fc Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 15 Jan 2024 21:20:10 -0600 Subject: [PATCH] container: Rebase on fedora-minimal Trying to unify all my custom images on the *fedora-minimal* image. --- Containerfile | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/Containerfile b/Containerfile index a3a08aa..4439242 100644 --- a/Containerfile +++ b/Containerfile @@ -1,16 +1,28 @@ -FROM docker.io/library/python:3.11 AS build +FROM registry.fedoraproject.org/fedora-minimal:39 AS build -RUN python3 -m pip install -U pip setuptools wheel +RUN --mount=type=cache,target=/var/cache \ + microdnf install -y \ + --setopt install_weak_deps=0 \ + python3 \ + python3-pip \ + python3-setuptools \ + python3-wheel \ + && : COPY . /tmp/build -RUN cd /tmp/build && python3 -m pip wheel -w dist . +WORKDIR /tmp/build -FROM docker.io/library/python:3.11-slim +RUN python3 -m pip wheel -w dist . -RUN --mount=type=cache,target=/var/cache/apt \ - apt-get update && \ - apt-get install -y \ + +FROM registry.fedoraproject.org/fedora-minimal:39 + +RUN --mount=type=cache,target=/var/cache \ + microdnf install -y \ + --setopt install_weak_deps=0 \ + python3 \ + python3-pip \ tini \ && :