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 \ && :