Dockerfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. # This docker file uses ubuntu 22.04 as the base image so that the AWS Native C++ libraries will use OpenSSL 3 as the base
  8. # for its dependencies
  9. #
  10. ARG INPUT_ARCHITECTURE=amd64
  11. ARG INPUT_IMAGE=ubuntu:20.04
  12. ARG INPUT_DOCKER_BUILD_SCRIPT
  13. FROM ${INPUT_ARCHITECTURE}/${INPUT_IMAGE}
  14. ARG INPUT_DOCKER_BUILD_SCRIPT
  15. WORKDIR /data/workspace
  16. # Initilize apt cache
  17. RUN apt-get clean && apt-get update
  18. # Setup time zone and locale data (necessary for SSL and HTTPS packages)
  19. RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata locales keyboard-configuration
  20. # Install the development packages needed to build AWS Gamelift
  21. RUN apt-get install -y build-essential \
  22. git \
  23. cmake \
  24. python3 \
  25. ninja-build \
  26. libssl-dev
  27. # Prevent the copying of the src folder from being cached
  28. ARG CACHEBUST=1
  29. RUN cd /data/workspace && \
  30. mkdir src
  31. # Copy the git synced source from the context base to this container
  32. COPY src /data/workspace/src/
  33. # Copy the build script specific to this Docker script in order to execute the build
  34. COPY ${INPUT_DOCKER_BUILD_SCRIPT} /data/workspace/