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