continued dockerfile and added dockerignore

This commit is contained in:
Robin Müller 2021-05-20 19:31:11 +02:00
parent 4268b29d19
commit e2d40a474b
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
3 changed files with 24 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
/build*

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
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"]

View File