diff --git a/Dockerfile b/Dockerfile index c568cb27b0..9ee6abaa8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Build Postgres # -FROM zimg/rust:1.56 AS pg-build +#FROM zimg/rust:1.56 AS pg-build +FROM zenithdb/build:buster-20220309 AS pg-build WORKDIR /pg USER root @@ -16,13 +17,15 @@ RUN set -e \ # Build zenith binaries # -FROM zimg/rust:1.56 AS build +#FROM zimg/rust:1.56 AS build +FROM zenithdb/build:buster-20220309 AS build ARG GIT_VERSION=local ARG CACHEPOT_BUCKET=zenith-rust-cachepot ARG AWS_ACCESS_KEY_ID ARG AWS_SECRET_ACCESS_KEY -ENV RUSTC_WRAPPER cachepot +#ENV RUSTC_WRAPPER cachepot +ENV RUSTC_WRAPPER /usr/local/cargo/bin/cachepot COPY --from=pg-build /pg/tmp_install/include/postgresql/server tmp_install/include/postgresql/server COPY . . diff --git a/Dockerfile.build b/Dockerfile.build new file mode 100644 index 0000000000..44a2aaafb9 --- /dev/null +++ b/Dockerfile.build @@ -0,0 +1,23 @@ +FROM rust:1.56.1-slim-buster +WORKDIR /home/circleci/project + +RUN set -e \ + && apt-get update \ + && apt-get -yq install \ + automake \ + libtool \ + build-essential \ + bison \ + flex \ + libreadline-dev \ + zlib1g-dev \ + libxml2-dev \ + libseccomp-dev \ + pkg-config \ + libssl-dev \ + clang + +RUN set -e \ + && rustup component add clippy \ + && cargo install cargo-audit \ + && cargo install --git https://github.com/paritytech/cachepot