From 95cf25ea8d7b70763de06ae399f102b085625749 Mon Sep 17 00:00:00 2001 From: Alessandro Siniscalchi Date: Mon, 6 Nov 2023 12:31:01 +0100 Subject: [PATCH 1/2] CMD -> ENTRYPOINT --- third-party/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third-party/docker/Dockerfile b/third-party/docker/Dockerfile index 934220c462..72344f9fc0 100644 --- a/third-party/docker/Dockerfile +++ b/third-party/docker/Dockerfile @@ -34,4 +34,4 @@ RUN ["astar-collator", "--version"] EXPOSE 30333 30334 9933 9944 VOLUME ["/data"] -CMD ["/usr/local/bin/astar-collator","-d","/data"] +ENTRYPOINT ["/usr/local/bin/astar-collator","-d","/data"] From 051a00eb1072dd4051921a2cf9094a0783abac10 Mon Sep 17 00:00:00 2001 From: Alessandro Siniscalchi Date: Mon, 6 Nov 2023 15:15:05 +0100 Subject: [PATCH 2/2] shell is needed by paritytech helm chart --- third-party/docker/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/third-party/docker/Dockerfile b/third-party/docker/Dockerfile index 72344f9fc0..a2833b25e6 100644 --- a/third-party/docker/Dockerfile +++ b/third-party/docker/Dockerfile @@ -19,8 +19,7 @@ ENV RUST_BACKTRACE 1 # add user RUN useradd -m -u 1000 -U -s /bin/sh -d /astar astar && \ mkdir /data && \ - chown -R astar:astar /data && \ - rm -rf /usr/bin /usr/sbin + chown -R astar:astar /data ARG PROFILE=release # add binary to docker image