mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-06 01:08:11 +00:00
* Fix Dockerfile build The Docker build used a 2-step installation of requirements and application. This was broken by #272. Fixes #300 * Add dependencies cache for docker build Caching installation requirements saves time when building
20 lines
304 B
Docker
20 lines
304 B
Docker
FROM python:3.8-alpine as builder
|
|
|
|
RUN apk add --no-cache \
|
|
linux-headers \
|
|
tcpdump \
|
|
build-base \
|
|
ebtables \
|
|
make \
|
|
git && \
|
|
apk upgrade --no-cache
|
|
|
|
WORKDIR /kube-hunter
|
|
COPY setup.py setup.cfg Makefile ./
|
|
RUN make deps
|
|
|
|
COPY . .
|
|
RUN make install
|
|
|
|
ENTRYPOINT ["kube-hunter"]
|