eive-obsw/bsp_hosted/Dockerfile

22 lines
478 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-06-08 16:45:25 +02:00
ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
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; \
2023-01-09 15:44:29 +01:00
cmake -DCMAKE_BUILD_TYPE=Release -DOSAL_FSFW=host ..;
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"]