26 lines
837 B
Docker
26 lines
837 B
Docker
|
# FROM alpine:latest
|
||
|
FROM ubuntu:latest
|
||
|
|
||
|
RUN apt-get update -y && apt-get upgrade -y
|
||
|
RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
|
||
|
RUN apt-get install -y cmake g++ npm; \
|
||
|
npm install --global xpm@latest; \
|
||
|
xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
|
||
|
# RUN apk add cmake make g++ npm; \
|
||
|
# npm install --global xpm@latest; \
|
||
|
# xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
|
||
|
|
||
|
ENV PATH="/root/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/10.2.1-1.1.2/.content/bin:${PATH}"
|
||
|
WORKDIR /usr/src/app
|
||
|
COPY . .
|
||
|
|
||
|
RUN set -ex; \
|
||
|
rm -rf build-freertos; \
|
||
|
mkdir build-freertos; \
|
||
|
cd build-freertos; \
|
||
|
cmake -DCMAKE_BUILD_TYPE=Release -DOS_FSFW=freertos -DTGT_BSP=arm/stm32h743zi-nucleo ..;
|
||
|
|
||
|
ENTRYPOINT ["cmake", "--build", "build-freertos"]
|
||
|
CMD ["-j"]
|
||
|
# CMD ["sh"]
|