Files
kube-hunter/Dockerfile
Yehuda Chikvashvili 11efbb7514 Fix Dockerfile build (#303)
* 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
2020-02-27 14:37:25 +02:00

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"]