FROM gcc:11
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y cmake
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN rm -rf build-hosted
RUN set -ex; \
mkdir build-hosted; \
cd build-hosted; \
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=host ..;
ENTRYPOINT ["sh", "-c", "cmake --build build-hosted -j"]