updated dockerfile
This commit is contained in:
parent
06e4147c77
commit
88ccaa7c40
@ -1,16 +1,18 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
# FROM alpine:latest
|
||||||
|
|
||||||
RUN apt-get update -y && apt-get upgrade -y
|
RUN apt-get update && apt-get install -y cmake g++
|
||||||
RUN apt-get install -y cmake g++
|
# RUN apk add cmake make g++
|
||||||
|
|
||||||
COPY . /usr/src/app
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
rm -rf build-hosted; \
|
rm -rf build-hosted; \
|
||||||
mkdir build-hosted; \
|
mkdir build-hosted; \
|
||||||
cd 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 ["-j"]
|
||||||
|
# CMD ["bash"]
|
||||||
|
Loading…
Reference in New Issue
Block a user