From 14003ba24a6dba98e803a654ae9fd500cc7e8db0 Mon Sep 17 00:00:00 2001 From: Eric Levy Date: Mon, 24 Jan 2022 20:50:14 -0500 Subject: [PATCH 1/2] Introduce general improvements for Docker image --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5a62ecf..8e8f831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,7 @@ FROM alpine:3.13.4 -COPY ./mo . -RUN apk add --update bash && \ - chmod +x mo &&\ - mv mo /usr/local/bin/mo && \ - rm -rf /var/cache/apk/* +RUN apk add --no-cache bash +ADD mo /usr/local/bin/mo +RUN chmod +x /usr/local/bin/mo -WORKDIR /opt - -ENTRYPOINT ["/usr/local/bin/mo"] \ No newline at end of file +ENTRYPOINT usr/local/bin/mo From 71f85fa4f2ffca12b4cff081893895b15dbff0ca Mon Sep 17 00:00:00 2001 From: Eric Levy Date: Mon, 24 Jan 2022 20:57:09 -0500 Subject: [PATCH 2/2] Use latest Alpine image as Docker base --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8e8f831..244efd5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.13.4 +FROM alpine RUN apk add --no-cache bash ADD mo /usr/local/bin/mo