mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-07 01:39:08 +00:00
Somewhat dirty (perhaps there is a better multi-stage build solution). First copy requirements.txt only and install all dependencies. Then copy all kube-hunter new code. This way only latest layer changing on code changes and all previous can be brought from cache.
17 lines
318 B
Docker
17 lines
318 B
Docker
FROM python:2.7.15-alpine3.8
|
|
|
|
RUN apk add --update \
|
|
linux-headers \
|
|
build-base \
|
|
tcpdump \
|
|
wireshark
|
|
|
|
RUN mkdir -p /kube-hunter
|
|
COPY ./requirements.txt /kube-hunter/.
|
|
RUN pip install -r /kube-hunter/requirements.txt
|
|
|
|
COPY . /kube-hunter
|
|
WORKDIR /kube-hunter
|
|
|
|
ENTRYPOINT ["python", "kube-hunter.py"]
|