1
0
Fork 0

container: Rebase on fedora-minimal

Trying to unify all my custom images on the *fedora-minimal* image.
master
Dustin 2024-01-15 21:20:10 -06:00
parent 9cf2345aa9
commit 93ccf42ed6
1 changed files with 19 additions and 7 deletions

View File

@ -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 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 && \ FROM registry.fedoraproject.org/fedora-minimal:39
apt-get install -y \
RUN --mount=type=cache,target=/var/cache \
microdnf install -y \
--setopt install_weak_deps=0 \
python3 \
python3-pip \
tini \ tini \
&& : && :