From 576c28115090b62237089d35587e175f48d8fa52 Mon Sep 17 00:00:00 2001 From: Rahul Surwade <93492791+RahulSurwade08@users.noreply.github.com> Date: Wed, 31 Aug 2022 17:16:31 -0400 Subject: [PATCH] Added alpine tag Adding alpine tag instead of latest and removing repeating commands --- build/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index 542bc210..d626ec3b 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -20,7 +20,6 @@ WORKDIR /work ADD . . # install libgit2 -WORKDIR /work RUN rm -rf git2go && make libgit2 # build kubescape server @@ -34,16 +33,16 @@ RUN python build.py RUN /work/build/ubuntu-latest/kubescape download artifacts -o /work/artifacts -FROM alpine +FROM alpine:3.16.2 RUN addgroup -S armo && adduser -S armo -G armo -RUN mkdir /home/armo/.kubescape COPY --from=builder /work/artifacts/ /home/armo/.kubescape RUN chown -R armo:armo /home/armo/.kubescape USER armo + WORKDIR /home/armo COPY --from=builder /work/httphandler/build/ubuntu-latest/kubescape /usr/bin/ksserver