Dockerfile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. # This docker file uses ubuntu 20.04 as the base image so that the AWS Native C++ libraries will use OpenSSL 3 as the base
  7. # for its dependencies
  8. #
  9. FROM public.ecr.aws/ubuntu/ubuntu:20.04_stable
  10. WORKDIR /data/workspace
  11. ARG DOCKER_BUILD_SCRIPT
  12. # Initilize apt cache
  13. RUN apt-get clean && apt-get update
  14. # Setup time zone and locale data (necessary for SSL and HTTPS packages)
  15. RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata locales keyboard-configuration
  16. RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
  17. dpkg-reconfigure --frontend=noninteractive locales && \
  18. update-locale LANG=en_US.UTF-8
  19. ENV LANG=en_US.UTF-8
  20. # Install the development packages needed to build Qt from source
  21. RUN apt-get install -y build-essential \
  22. cmake \
  23. ninja-build
  24. RUN apt upgrade -y
  25. # Prepare a target folder within the container to install the build artifacts tp
  26. RUN mkdir -p /data/workspace/build
  27. ARG CACHEBUST=1
  28. # Copy the build script specific to this Docker script in order to execute the build
  29. COPY ${DOCKER_BUILD_SCRIPT} /data/workspace/