container: Rebase on fedora-minimal
Trying to unify all my custom images on the *fedora-minimal* image.master
parent
9cf2345aa9
commit
93ccf42ed6
|
@ -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 \
|
||||
&& :
|
||||
|
||||
|
|
Loading…
Reference in New Issue