eive-obsw/bsp_hosted/Dockerfile

19 lines
376 B
Docker
Raw Normal View History

2021-05-21 13:59:47 +02:00
FROM ubuntu:latest
2021-05-21 19:53:50 +02:00
# FROM alpine:latest
2021-05-21 13:59:47 +02:00
2021-05-21 19:53:50 +02:00
RUN apt-get update && apt-get install -y cmake g++
# RUN apk add cmake make g++
2021-05-21 13:59:47 +02:00
WORKDIR /usr/src/app
2021-05-21 19:53:50 +02:00
COPY . .
2021-05-21 13:59:47 +02:00
RUN set -ex; \
rm -rf build-hosted; \
mkdir build-hosted; \
cd build-hosted; \
2021-05-21 19:53:50 +02:00
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=linux ..;
2021-05-21 13:59:47 +02:00
2021-05-24 12:43:22 +02:00
ENTRYPOINT ["cmake", "--build", "build-hosted"]
2021-05-21 13:59:47 +02:00
CMD ["-j"]
2021-05-21 19:53:50 +02:00
# CMD ["bash"]