Update crates publishing dockerfile to ubuntu:focal
This change updates the dockerfile to be based on ubuntu:focal (i.e.
20.04).
It makes the necessary changes for the correct non-interactive
behaviour.
# docker build -f ci/publish-transact-crates -t publish-transact-crates ci/
# docker run --rm -v $(pwd):/project/transact -e CARGO_CRED=%CREDVALUE% publish-transact-crates
-FROM ubuntu:bionic
+FROM ubuntu:focal
-RUN apt-get update \
- && apt-get install -y \
+ENV DEBIAN_FRONTEND=noninteractive
+
+SHELL ["/bin/bash", "-o", "pipefail", "-c"]
+
+RUN apt-get update && \
+ apt-get install -y -q --no-install-recommends \
+ build-essential \
+ ca-certificates \
curl \
- gcc \
+ libpq-dev \
+ libsqlite3-dev \
libssl-dev \
libzmq3-dev \
pkg-config \
+ protobuf-compiler \
+ sqlite3 \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
