Files
Corentin Le Molgat 0814f8f29f ci: migrate rockylinux base image
> The Docker team curates the Official Images program,
and there are currently some technical constraints preventing
Rocky Linux from publishing updates here. For the most
up-to-date container images, please refer to the Rocky Linux
Docker Hub repository for now.

ref: https://hub.docker.com/_/rockylinux
2025-10-16 14:09:54 +02:00

29 lines
801 B
Docker

# Create a virtual environment with all tools installed
# ref: https://hub.docker.com/rockylinux/rockylinux
FROM rockylinux/rockylinux:9 AS base
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN dnf -y update \
&& dnf -y install git wget openssl-devel cmake \
&& dnf -y group install "Development Tools" \
&& dnf clean all \
&& rm -rf /var/cache/dnf
CMD [ "/usr/bin/bash" ]
# Install SWIG 4.3.0
FROM base AS swig
RUN dnf -y update \
&& dnf -y install pcre2-devel \
&& dnf clean all \
&& rm -rf /var/cache/dnf \
&& wget -q "https://downloads.sourceforge.net/project/swig/swig/swig-4.3.0/swig-4.3.0.tar.gz" \
&& tar xvf swig-4.3.0.tar.gz \
&& rm swig-4.3.0.tar.gz \
&& cd swig-4.3.0 \
&& ./configure --prefix=/usr \
&& make -j 4 \
&& make install \
&& cd .. \
&& rm -rf swig-4.3.0