forked from wapiti-scanner/wapiti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 896 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM debian:bullseye-slim as build
ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8
WORKDIR /usr/src/app
RUN apt update \
&& apt install python3 python3-pip python3-setuptools ca-certificates -y \
&& apt clean -yq \
&& apt autoremove -yq \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& truncate -s 0 /var/log/*log
COPY . .
RUN pip3 install .
FROM debian:bullseye-slim
ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
PYTHONDONTWRITEBYTECODE=1
RUN apt update \
&& apt install python3 python3-setuptools -y \
&& apt clean -yq \
&& apt autoremove -yq \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& truncate -s 0 /var/log/*log
COPY --from=build /usr/local/lib/python3.9/dist-packages/ /usr/local/lib/python3.9/dist-packages/
COPY --from=build /usr/local/bin/wapiti /usr/local/bin/wapiti-getcookie /usr/local/bin/
ENTRYPOINT ["wapiti"]