diff --git a/third-party/docker/Dockerfile b/third-party/docker/Dockerfile index 934220c462..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 @@ -34,4 +33,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"]