Dockerfile.x86_64 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright (c) Contributors to the Open 3D Engine Project.
  2. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. #
  4. # SPDX-License-Identifier: Apache-2.0 OR MIT
  5. #
  6. FROM amd64/ubuntu:20.04
  7. WORKDIR /data/workspace
  8. ARG DOCKER_BUILD_SCRIPT
  9. # Initilize apt cache
  10. RUN apt-get clean && apt-get update
  11. # Install the development packages needed to build Qt from source
  12. RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y build-essential \
  13. cmake \
  14. ninja-build \
  15. clang
  16. RUN apt upgrade -y
  17. # Prepare a target folder within the container to install the build artifacts tp
  18. RUN mkdir -p /data/workspace/build && \
  19. mkdir -p /data/workspace/src
  20. ARG CACHEBUST=1
  21. # Copy the build script specific to this Docker script in order to execute the build
  22. COPY ${DOCKER_BUILD_SCRIPT} /data/workspace/
  23. COPY src /data/workspace/src/