updated dockerfile

This commit is contained in:
Robin Müller 2021-05-21 19:53:50 +02:00
parent 06e4147c77
commit 88ccaa7c40
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -1,16 +1,18 @@
FROM ubuntu:latest
# FROM alpine:latest
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install -y cmake g++
RUN apt-get update && apt-get install -y cmake g++
# RUN apk add cmake make g++
COPY . /usr/src/app
WORKDIR /usr/src/app
COPY . .
RUN set -ex; \
rm -rf build-hosted; \
mkdir build-hosted; \
cd build-hosted; \
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=host ..;
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=linux ..;
ENTRYPOINT ["cmake", "--build", "build-hosted"]
ENTRYPOINT ["cmake", "--build", "build-linux"]
CMD ["-j"]
# CMD ["bash"]