From 22460799bdb5e271059c5365fdd298eaba11fe1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Gajdu=C5=A1ek?= Date: Fri, 6 Sep 2024 11:37:58 +0200 Subject: [PATCH] Base robottelo image on fedora/python-312 (#16248) --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 540ce556f4..9fdb18421d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ -FROM fedora:38 +FROM quay.io/fedora/python-312:latest MAINTAINER https://github.com/SatelliteQE -COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv +ENV PYCURL_SSL_LIBRARY=openssl \ + ROBOTTELO_DIR="${HOME}/robottelo" -RUN dnf install -y gcc git make cmake libffi-devel openssl-devel python3-devel \ - redhat-rpm-config which libcurl-devel libxml2-devel +COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv -COPY / /robottelo/ -WORKDIR /robottelo +USER 1001 +COPY --chown=1001:0 / ${ROBOTTELO_DIR} -ENV PYCURL_SSL_LIBRARY=openssl -ENV UV_SYSTEM_PYTHON=1 +WORKDIR "${ROBOTTELO_DIR}" RUN uv pip install -r requirements.txt CMD make test-robottelo