-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (31 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
31 lines (31 loc) · 1.09 KB
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
FROM golang:alpine3.10
LABEL maintainer="shibme"
RUN apk add --no-cache curl wget bash
RUN apk add --no-cache openssh-client
RUN apk add --no-cache git
RUN apk add --no-cache openjdk8
RUN apk add --no-cache maven
RUN apk add --no-cache gradle
RUN apk add --no-cache ruby ruby-io-console ruby-bundler ruby-json
RUN gem install rdoc --no-document
RUN gem install bundler:1.17.1
RUN gem install bundler
RUN gem install brakeman
RUN gem install bundler-audit
RUN apk add --no-cache npm
RUN npm install -g retire
WORKDIR /bugaudit-tools
ADD https://dl.bintray.com/jeremy-long/owasp/dependency-check-5.2.2-release.zip /bugaudit-tools/dependency-check.zip
RUN unzip dependency-check.zip
RUN rm dependency-check.zip
RUN ln -s /bugaudit-tools/dependency-check/bin/dependency-check.sh /bin/dependency-check
RUN go get github.com/securego/gosec/cmd/gosec
RUN ln -s /go/bin/gosec /bin/gosec
WORKDIR /bugaudit-workspace
RUN mkdir /root/.ssh
COPY bugaudit-docker-git-config /root/.ssh/config
RUN chmod 400 /root/.ssh/config
RUN dependency-check -s /tmp/
RUN rm dependency-check-report.html
RUN bundle audit update
RUN retire update