From 14003ba24a6dba98e803a654ae9fd500cc7e8db0 Mon Sep 17 00:00:00 2001 From: Eric Levy Date: Mon, 24 Jan 2022 20:50:14 -0500 Subject: [PATCH] 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