mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* greetings * Update aws.sh simplified the comment * typo: In the title and h1 element Their was a typo in index.html file. * punctuation changes * docs : added gitpod badge in readme.md * fixed typos * some grammar mistake is corrected inPULL_REQUEST_TEMPLATE.md file * Updated README.md file Added link to CONTRIBUTING.md file in a line in README. * Added link to code of conduct file I have added link to the code of conduct file and fixed some problems in the Readme file. * Fixed readme * Added alpine tag Adding alpine tag instead of latest and removing repeating commands * roadmap.md file is modified * Automatically Close "Typo" labelled Issue * build.py is modified * modified PR template * Fixed some typos in feature_request.md "." at the end of the headings were missing and all the text were in same line. Now this gives a clear and concise view of the texts. * fixed the typo in docs/index.html Found and fixed typo in the 'alt' attribute of img tag * Update PULL_REQUEST_TEMPLATE.md Co-authored-by: Krishna Agarwal <dmkrishna.agarwal@gmail.com> Co-authored-by: Saswata Senapati <74651639+saswat16@users.noreply.github.com> Co-authored-by: Rahul Singh <110548934+rahuldhirendersingh@users.noreply.github.com> Co-authored-by: deepuyadav004 <deepuyadavze@gmail.com> Co-authored-by: kartik <97971066+kartikgajjar7@users.noreply.github.com> Co-authored-by: Rounak-28 <95576871+Rounak-28@users.noreply.github.com> Co-authored-by: pwnb0y <vickykr07@yahoo.com> Co-authored-by: Ben Hirschberg <59160382+slashben@users.noreply.github.com> Co-authored-by: Saptarshi Sarkar <saptarshi.programmer@gmail.com> Co-authored-by: Rahul Surwade <93492791+RahulSurwade08@users.noreply.github.com> Co-authored-by: Suhas Gumma <43647369+suhasgumma@users.noreply.github.com> Co-authored-by: Kamal Nayan <95926324+legendarykamal@users.noreply.github.com> Co-authored-by: TarangVerma <90996971+TarangVerma@users.noreply.github.com> Co-authored-by: avikittu <65793296+avikittu@users.noreply.github.com>
52 lines
1.1 KiB
Docker
52 lines
1.1 KiB
Docker
FROM golang:1.18-alpine as builder
|
|
|
|
ARG image_version
|
|
ARG client
|
|
|
|
ENV RELEASE=$image_version
|
|
ENV CLIENT=$client
|
|
|
|
ENV GO111MODULE=
|
|
|
|
ENV CGO_ENABLED=1
|
|
|
|
# Install required python/pip
|
|
ENV PYTHONUNBUFFERED=1
|
|
RUN apk add --update --no-cache python3 git openssl-dev musl-dev gcc make cmake pkgconfig && ln -sf python3 /usr/bin/python
|
|
RUN python3 -m ensurepip
|
|
RUN pip3 install --no-cache --upgrade pip setuptools
|
|
|
|
WORKDIR /work
|
|
ADD . .
|
|
|
|
# install libgit2
|
|
RUN rm -rf git2go && make libgit2
|
|
|
|
# build kubescape server
|
|
WORKDIR /work/httphandler
|
|
RUN python build.py
|
|
RUN ls -ltr build/ubuntu-latest
|
|
|
|
# build kubescape cmd
|
|
WORKDIR /work
|
|
RUN python build.py
|
|
|
|
RUN /work/build/ubuntu-latest/kubescape download artifacts -o /work/artifacts
|
|
|
|
FROM alpine:3.16.2
|
|
|
|
RUN addgroup -S armo && adduser -S armo -G armo
|
|
|
|
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
|
|
COPY --from=builder /work/build/ubuntu-latest/kubescape /usr/bin/kubescape
|
|
|
|
ENTRYPOINT ["ksserver"]
|