mirror of https://github.com/aminya/setup-cpp
chore: update setup-cpp in dockerfiles
This commit is contained in:
parent
995537c5e7
commit
088ef837cc
11
README.md
11
README.md
|
@ -162,14 +162,13 @@ Here is an example for using setup-cpp to make a builder image that has the Cpp
|
||||||
FROM ubuntu:22.04 AS base
|
FROM ubuntu:22.04 AS base
|
||||||
|
|
||||||
# add setup-cpp
|
# add setup-cpp
|
||||||
WORKDIR "/"
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apt-get update -qq
|
npm \
|
||||||
RUN apt-get install -y --no-install-recommends wget
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.26.1/setup-cpp-x64-linux"
|
RUN npm install -g setup-cpp
|
||||||
RUN chmod +x ./setup-cpp-x64-linux
|
|
||||||
|
|
||||||
# install llvm, cmake, ninja, and ccache
|
# install llvm, cmake, ninja, and ccache
|
||||||
RUN ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true --make true
|
RUN setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true --make true
|
||||||
|
|
||||||
CMD source ~/.cpprc
|
CMD source ~/.cpprc
|
||||||
ENTRYPOINT [ "/bin/bash" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
#### Base Image
|
#### Base Image
|
||||||
FROM ubuntu:22.04 AS base
|
FROM ubuntu:22.04 AS base
|
||||||
|
|
||||||
# add setup-cpp
|
# install setup-cpp
|
||||||
WORKDIR "/"
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apt-get update -qq
|
npm \
|
||||||
RUN apt-get install -y --no-install-recommends wget
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN wget --no-verbose "https://github.com/aminya/setup-cpp/releases/download/v0.26.1/setup-cpp-x64-linux"
|
RUN npm install -g setup-cpp
|
||||||
RUN chmod +x ./setup-cpp-x64-linux
|
|
||||||
|
|
||||||
# install llvm, cmake, ninja, and ccache
|
# install llvm, cmake, ninja, and ccache
|
||||||
RUN ./setup-cpp-x64-linux --compiler llvm --cmake true --ninja true --ccache true --vcpkg true --task true
|
RUN setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true --task true
|
||||||
|
|
||||||
CMD source ~/.cpprc
|
CMD source ~/.cpprc
|
||||||
ENTRYPOINT [ "/bin/bash" ]
|
ENTRYPOINT [ "/bin/bash" ]
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
FROM ubuntu:22.04 AS base
|
FROM ubuntu:22.04 AS base
|
||||||
|
|
||||||
RUN apt-get update -qq
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN apt-get install -y --no-install-recommends nodejs
|
nodejs \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# add setup-cpp.js
|
# add setup-cpp.js
|
||||||
COPY "./dist/node12" "/"
|
COPY "./dist/node12" "/"
|
||||||
|
|
Loading…
Reference in New Issue