diff --git a/Dockerfile b/Dockerfile index 375f1f2d3a..273920a5b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,11 +18,23 @@ RUN cargo build --release --features $FEATURES # ===== SECOND STAGE ====== -FROM debian:buster-slim +FROM docker.io/library/ubuntu:20.04 LABEL description="This is the 2nd stage: a very small image where we copy the kilt-parachain binary." ARG NODE_TYPE=kilt-parachain +# install tools and dependencies +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + libssl1.1 \ + ca-certificates \ + curl && \ +# apt cleanup + apt-get autoremove -y && \ + apt-get clean && \ + find /var/lib/apt/lists/ -type f -not -name lock -delete + COPY ./LICENSE /build/LICENSE COPY ./README.md /build/README.md COPY --from=builder /build/target/release/$NODE_TYPE /usr/local/bin/node-executable