NMEA: fix GH issue #52, GCC-12 for aarch64
[marnav.git] / bin / docker / Dockerfile.gcc
blobbae4c92691502becae6490b614ea0972e0596ba2
1 ARG compiler_version=12.1.0
2 ARG base_image=gcc:${compiler_version}
4 FROM ${base_image}
5 LABEL maintainer="Mario Konrad <mario.konrad@gmx.net>"
7 ARG cmake_version=3.24.1
8 ARG boost_version=1.80.0
10 USER root
11 RUN apt-get update \
12  && apt-get install -y apt-utils curl git-core ninja-build libqt5serialport5-dev \
13  && rm -fr /var/lib/apt/lists/*
14 RUN mkdir -p /opt
16 # install cmake
17 COPY install-cmake.sh /tmp/
18 RUN /tmp/install-cmake.sh "${cmake_version}"
19 ENV PATH /opt/local/cmake/bin:$PATH
21 # install boost
22 COPY install-boost.sh /tmp/
23 RUN /tmp/install-boost.sh "${boost_version}" "gcc"
24 ENV BOOST_ROOT=/opt/local
26 # add user
27 RUN useradd --groups users -M --uid 1000 user
28 USER user