-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
52 lines (38 loc) · 1.21 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM alpine
WORKDIR /usr/workdir
ENV NJSSCAN_VERSION=0.2.9
RUN apk update \
&& apk upgrade \
&& apk add --no-cache bash \
&& apk add --no-cache --virtual=build-dependencies unzip \
&& apk add --no-cache curl \
&& apk add --no-cache nss \
&& apk add --no-cache openjdk8-jre
RUN apk add --update \
curl \
&& rm -rf /var/cache/apk/*
RUN apk add --no-cache python3 \
&& python3 -m ensurepip \
&& pip3 install --upgrade pip setuptools \
&& rm -r /usr/lib/python*/ensurepip && \
if [ ! -e /usr/bin/pip ]; then ln -s pip3 /usr/bin/pip ; fi && \
if [[ ! -e /usr/bin/python ]]; then ln -sf /usr/bin/python3 /usr/bin/python; fi && \
rm -r /root/.cache
RUN pip install --trusted-host pypi.python.org flask
RUN pip3 install checkov==2.0.283
RUN pip install njsscan==$NJSSCAN_VERSION
RUN pip install bandit
RUN apk add --update --no-cache vim git make musl-dev go curl
# Configure Go
RUN export GOPATH=/root/go
RUN export PATH=${GOPATH}/bin:/usr/local/go/bin:$PATH
RUN export GOBIN=$GOROOT/bin
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
RUN export GO111MODULE=on
RUN go version
RUN mkdir /usr/share/sl
RUN mkdir /usr/share/sl/data
ADD target/tes.jar /test.jar
WORKDIR /workdir
ENTRYPOINT ["java","-jar","tets.jar"]
CMD ["-h"]