From b61b01bea36d2d18fed0f7f147609132b837b1e5 Mon Sep 17 00:00:00 2001 From: Stefin Date: Thu, 23 Jul 2020 13:13:34 +0000 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Sandro --- .dockerignore | 1 + Dockerfile | 17 +++++++---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.dockerignore b/.dockerignore index 0f55f57..6b3d6ee 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,4 @@ Dockerfile .dockerignore README.txt +.git diff --git a/Dockerfile b/Dockerfile index c07ca42..de5d01f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,17 @@ FROM alpine:3.12.0 #Installing all the dependencies -RUN apk add gcc libsodium-dev make autoconf build-base +RUN apk add --no-cache gcc libsodium-dev make autoconf build-base WORKDIR /mkp224o -COPY . . +COPY . /mkp224o/ -RUN ["./autogen.sh"] - -RUN ["./configure"] - -RUN ["make"] - -RUN cp /mkp224o/mkp224o /usr/bin/ +RUN ./autogen.sh \ + && ./configure \ + && make \ + && cp /mkp224o/mkp224o /usr/local/bin/ WORKDIR /root -CMD ["sh"] +CMD ["mkp224o"]