Dockerfile 909 B

1234567891011121314151617181920212223
  1. # escape=`
  2. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  3. # file Copyright.txt or https://cmake.org/licensing for details.
  4. # Produce an image containing a portable CMake binary package for Windows.
  5. # Build using the CMake source directory as the build context.
  6. # The resulting image will have a 'c:\out' directory containing the package.
  7. ARG FROM_IMAGE_NAME=kitware/cmake:build-win-x86-deps-2020-04-27
  8. ARG FROM_IMAGE_DIGEST=@sha256:04e229c0c0ba2247855d0e8c0fb87c1686f983adbafa4ce413e61b3905edb76b
  9. ARG FROM_IMAGE=$FROM_IMAGE_NAME$FROM_IMAGE_DIGEST
  10. FROM $FROM_IMAGE as build
  11. COPY . C:\cmake\src\cmake
  12. ARG ARCH="x86_64"
  13. ARG TEST="true"
  14. RUN \cmake\src\cmake\Utilities\Release\win\x86\build.bat %ARCH% %TEST%
  15. # Package in a separate stage so the builder can optionally skip it.
  16. FROM build as pack
  17. ARG PACK="ZIP WIX"
  18. RUN \cmake\src\cmake\Utilities\Release\win\x86\pack.bat %PACK%