# - Base --------------------------------------
# Setup base operating system
FROM ubuntu:22.04
RUN apt-get update
# Set noninteractive installation
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Australia/Brisbane
# Install Base Build Tools
RUN apt-get install -y make git python3 cmake
# -------------------------------------------
# Install Linting Tools
RUN apt-get install -y clang clang-tidy clang-format clang-tools
# Install Build Tools
ADD osxcross.tar.bz2 ./
# Install Build Tool Dependancy
RUN apt-get install -y libxml2-dev libtinfo5
RUN apt-get install -y wget
RUN wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
RUN apt-get install ./libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
# Configure Environment Variables
ENV LD_LIBRARY_PATH="/osxcross/lib:/usr/lib/llvm-14/lib:${LD_LIBRARY_PATH}"
ENV PATH="/osxcross/bin:${PATH}"