fix: install apt-utils before other packages

This commit is contained in:
Amin Yahyaabadi 2021-09-18 12:40:45 -05:00
parent 7f42ab35bf
commit 883005209b
2 changed files with 6 additions and 4 deletions

View File

@ -139,12 +139,13 @@ FROM debian:bullseye
# add setup_cpp
WORKDIR "/"
RUN apt-get update -qq
RUN apt-get install -y --no-install-recommends ca-certificates apt-utils wget
RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y --no-install-recommends ca-certificates wget
RUN wget "https://github.com/aminya/setup-cpp/releases/download/v0.2/setup_cpp_linux"
RUN chmod +x ./setup_cpp_linux
# install llvm, cmake, ninja, ccache, and conan
RUN ./setup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan true
RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --conan true
ENTRYPOINT [ "/bin/bash" ]
```

View File

@ -4,11 +4,12 @@ FROM debian:bullseye
# add setup_cpp
WORKDIR "/"
RUN apt-get update -qq
RUN apt-get install -y --no-install-recommends ca-certificates apt-utils wget
RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y --no-install-recommends ca-certificates wget
RUN wget "https://github.com/aminya/setup-cpp/releases/download/v0.2/setup_cpp_linux"
RUN chmod +x ./setup_cpp_linux
# install llvm, cmake, ninja, ccache, and conan
RUN ./setup_cpp --compiler llvm --cmake true --ninja true --ccache true --conan true
RUN ./setup_cpp_linux --compiler llvm --cmake true --ninja true --ccache true --conan true
ENTRYPOINT [ "/bin/bash" ]