forked from fit2cloud/riskscanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (18 loc) · 920 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
FROM registry.cn-qingdao.aliyuncs.com/x-lab/nuclei:v1.6.1 as nuclei-env
FROM registry.cn-qingdao.aliyuncs.com/x-lab/prowler:v1.6.1 as prowler-env
FROM registry.cn-qingdao.aliyuncs.com/x-lab/custodian:v1.6.1
ARG RS_VERSION=dev
RUN apk add --no-cache bind-tools ca-certificates && \
apk --update --no-cache add python3 bash curl jq file coreutils py3-pip && \
pip3 install --upgrade pip && \
pip install awscli boto3 detect-secrets
COPY --from=nuclei-env /usr/local/bin/nuclei /usr/local/bin/nuclei
COPY --from=prowler-env /prowler /prowler
RUN mkdir -p /opt/apps
COPY backend/target/backend-1.0.jar /opt/apps
ENV JAVA_APP_JAR=/opt/apps/backend-1.0.jar
ENV AB_OFF=true
ENV RS_VERSION=${RS_VERSION}
ENV JAVA_OPTIONS="-Dfile.encoding=utf-8 -Djava.awt.headless=true"
HEALTHCHECK --interval=15s --timeout=5s --retries=20 --start-period=30s CMD curl -f 127.0.0.1:8088
CMD ["/deployments/run-java.sh"]