23 lines
393 B
Docker
23 lines
393 B
Docker
|
FROM gcc:11
|
||
|
|
||
|
RUN apt-get update
|
||
|
RUN apt-get install -y cmake
|
||
|
|
||
|
COPY . /usr/src/fsfw_example_public
|
||
|
WORKDIR /usr/src/fsfw_example_public
|
||
|
|
||
|
RUN mkdir build-linux; \
|
||
|
cd build-linux; \
|
||
|
cmake -DOS_FSFW=linux ..; \
|
||
|
cmake --build . -j; \
|
||
|
cd ..
|
||
|
|
||
|
RUN mkdir build-hosted; \
|
||
|
cd build-hosted; \
|
||
|
cmake -DOS_FSFW=host ..; \
|
||
|
cmake --build . -j; \
|
||
|
cd ..
|
||
|
|
||
|
ENTRYPOINT ["/bin/sh"]
|
||
|
|