From 57898e43e17b7058e05ad9683a7ee1e1370d5ddc Mon Sep 17 00:00:00 2001
From: Victor Castell <victor@victorcastell.com>
Date: Wed, 10 Nov 2021 11:02:37 +0100
Subject: [PATCH] Final touches to Dockerfiles

---
 Dockerfile          | 2 ++
 Dockerfile.alltools | 7 +++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 860b18c70..c12a8b1f4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,3 +25,5 @@ COPY --from=builder /bor/build/bin/bor /usr/local/bin/
 COPY --from=builder /bor/build/bin/bootnode /usr/local/bin/
 
 EXPOSE 8545 8546 8547 30303 30303/udp
+
+ENTRYPOINT ["bor"]
diff --git a/Dockerfile.alltools b/Dockerfile.alltools
index 10cf1392e..53be8bc95 100644
--- a/Dockerfile.alltools
+++ b/Dockerfile.alltools
@@ -9,7 +9,10 @@ RUN cd /bor && make bor-all
 # Pull all binaries into a second stage deploy alpine container
 FROM alpine:latest
 
-RUN apk add --no-cache ca-certificates
+RUN set -x \
+    && apk add --update --no-cache \
+       ca-certificates \
+    && rm -rf /var/cache/apk/*
 COPY --from=builder /bor/build/bin/* /usr/local/bin/
 
-EXPOSE 8545 8546 30303 30303/udp
\ No newline at end of file
+EXPOSE 8545 8546 30303 30303/udp
-- 
GitLab