14 lines
573 B
Docker
14 lines
573 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk update \
|
|
&& apk upgrade \
|
|
&& apk add gcompat ninja-build linux-headers \
|
|
&& apk --repository=https://dl-cdn.alpinelinux.org/alpine/edge/main add gcc g++ gdb \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
RUN cd /root/ \
|
|
&& wget https://github.com/Kitware/CMake/releases/download/v4.2.0-rc2/cmake-4.2.0-rc2-linux-x86_64.sh \
|
|
&& sh cmake-4.2.0-rc2-linux-x86_64.sh --prefix=/opt/cmake --skip-license --include-subdir \
|
|
&& rm cmake-4.2.0-rc2-linux-x86_64.sh \
|
|
&& ln -s /opt/cmake/cmake-4.2.0-rc2-linux-x86_64/bin/cmake /usr/bin/cmake
|