ConceptCore/Dockerfile

54 lines
1.2 KiB
Docker
Raw Permalink Normal View History

2024-04-15 22:16:14 +03:00
# ubunutu is the base image
FROM quay.io/pypa/manylinux_2_28_x86_64 as builder
2024-04-15 22:16:14 +03:00
LABEL version="1.0"
LABEL maintainer="IRBorisov iborisov@acconcept.ru"
LABEL description="Linux build environment"
2024-04-18 15:02:46 +03:00
ARG DEBIAN_FRONTEND=noninteractive
2024-04-15 22:16:14 +03:00
# Install standard packages
2024-07-14 13:44:57 +03:00
RUN dnf update -y && \
dnf upgrade -y && \
dnf install -y \
2024-04-15 22:16:14 +03:00
nano \
make \
2024-04-15 22:16:14 +03:00
wget \
curl \
tar && \
dnf update -y && \
dnf clean all
2024-04-15 22:16:14 +03:00
# GCC compiler
2024-04-15 22:16:14 +03:00
ARG GCC_VER="13"
RUN dnf install -y \
gcc-toolset-${GCC_VER} \
gcc-toolset-${GCC_VER}-gcc-c++ && \
dnf remove -y gcc-toolset-12-* && \
dnf clean all
ENV CC="/opt/rh/gcc-toolset-${GCC_VER}/root/bin/gcc"
ENV CXX="/opt/rh/gcc-toolset-${GCC_VER}/root/bin/g++"
ENV PATH="/opt/python/cp312-cp312/bin:/opt/rh/gcc-toolset-13/root/bin:${PATH}"
# Install build tools
RUN python3.12 -m pip install \
auditwheel \
wheel \
build \
ninja \
cmake \
conan
2024-04-15 22:16:14 +03:00
# ====================== END OF CPP-Python environment ==================
FROM builder as CCL
ENV TARGET_PLATFORM='manylinux_2_28_x86_64'
2024-04-15 22:16:14 +03:00
WORKDIR /home
2024-04-15 22:16:14 +03:00
COPY . /home
RUN sed -i 's/\r$//g' /home/BuildAll.sh && \
chmod +x /home/BuildAll.sh