From e919304c3e9eb497ae60429e0616b280a482896d Mon Sep 17 00:00:00 2001 From: gabriel klawitter Date: Wed, 3 Apr 2019 14:38:16 +0200 Subject: [PATCH] ci: fix dockerfile for debian build (#2194) --- substrate/scripts/docker/Dockerfile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/substrate/scripts/docker/Dockerfile b/substrate/scripts/docker/Dockerfile index 3511ef2b7d..6ad4776644 100644 --- a/substrate/scripts/docker/Dockerfile +++ b/substrate/scripts/docker/Dockerfile @@ -1,27 +1,28 @@ -FROM ubuntu:xenial +FROM debian:stretch-slim LABEL maintainer "devops-team@parity.io" LABEL description="Substrate: The platform for blockchain innovators" RUN apt-get update && \ - apt-get upgrade -y && \ + DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ - libssl1.0.0 \ - ca-certificates \ - curl && \ + libssl1.1 \ + ca-certificates \ + curl && \ apt-get autoremove -y && \ - apt-get clean - -RUN find /var/lib/apt/lists/ -type f -not -name lock -delete + apt-get clean && \ + find /var/lib/apt/lists/ -type f -not -name lock -delete COPY ./substrate /usr/local/bin - RUN useradd -m -u 1000 -U -s /bin/sh -d /substrate substrate USER substrate ENV RUST_BACKTRACE 1 +# check if executable works in this container +RUN /usr/local/bin/substrate --version + EXPOSE 30333 9933 9944 VOLUME ["/substrate"]