Dockerfile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file LICENSE.rst or https://cmake.org/licensing for details.
  3. # Produce a base image with a build environment for portable CMake binaries.
  4. # Build using the directory containing this file as its own build context.
  5. ARG FROM_IMAGE_NAME=centos:8
  6. ARG FROM_IMAGE_DIGEST=@sha256:a27fd8080b517143cbbbab9dfb7c8571c40d67d534bbdee55bd6c473f432b177
  7. ARG FROM_IMAGE=$FROM_IMAGE_NAME$FROM_IMAGE_DIGEST
  8. FROM $FROM_IMAGE
  9. COPY repo-vault.sed /root/
  10. RUN : \
  11. && sed -f /root/repo-vault.sed -i /etc/yum.repos.d/*.repo \
  12. && sed -i '/^enabled=0/s/0/1/' /etc/yum.repos.d/CentOS-Linux-PowerTools.repo \
  13. && dnf install -y \
  14. ca-certificates \
  15. curl \
  16. fontconfig-devel \
  17. freetype-devel \
  18. gcc \
  19. gcc-c++ \
  20. git \
  21. libstdc++-static \
  22. libX11-devel \
  23. libxcb-devel \
  24. make \
  25. patch \
  26. perl \
  27. perl-core \
  28. python3-pip \
  29. xz \
  30. which \
  31. && dnf clean all \
  32. && :