19 lines
375 B
Docker
19 lines
375 B
Docker
FROM ubuntu:latest
|
|
# FROM alpine:latest
|
|
|
|
RUN apt-get update && apt-get install -y cmake g++
|
|
# RUN apk add cmake make g++
|
|
|
|
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=linux ..;
|
|
|
|
ENTRYPOINT ["cmake", "--build", "build-linux"]
|
|
CMD ["-j"]
|
|
# CMD ["bash"]
|