Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions .templates/new-scanner/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,3 @@ ARG baseImageTag
FROM ${namespace:-securecodebox}/parser-sdk-nodejs:${baseImageTag:-latest}
WORKDIR /home/app/parser-wrapper/parser/
COPY --chown=app:app ./parser.js ./parser.js

# Additional packages
# ARG namespace
# ARG baseImageTag
# FROM node:22-alpine as build
# RUN mkdir -p /home/app
# WORKDIR /home/app
# COPY package.json package-lock.json ./
# RUN npm ci --production
#
# FROM ${namespace:-securecodebox}/parser-sdk-nodejs:${baseImageTag:-latest}
# WORKDIR /home/app/parser-wrapper/parser/
# COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
# COPY --chown=app:app ./parser.js ./parser.js
2 changes: 1 addition & 1 deletion auto-discovery/cloud-aws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

# Build the service binary
FROM golang:1.22 as builder
FROM golang:1.22 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion auto-discovery/kubernetes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
2 changes: 1 addition & 1 deletion demo-targets/old-joomla/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM alpine:3.13 as base
FROM alpine:3.13 AS base

WORKDIR /html
RUN apk add wget unzip \
Expand Down
2 changes: 1 addition & 1 deletion demo-targets/old-wordpress/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM alpine:3.13 as base
FROM alpine:3.13 AS base
RUN apk add wget unzip \
&& wget https://downloads.wordpress.org/plugin/sqlite-integration.1.8.1.zip \
&& unzip sqlite-integration.1.8.1.zip \
Expand Down
4 changes: 2 additions & 2 deletions hook-sdk/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM node:22-alpine as build
FROM node:22-alpine AS build
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production
Expand All @@ -14,5 +14,5 @@ WORKDIR /home/app/hook-wrapper/
COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
COPY --chown=app:app ./hook-wrapper.js ./hook-wrapper.js
USER 1001
ENV NODE_ENV ${NODE_ENV:-production}
ENV NODE_ENV=${NODE_ENV:-production}
ENTRYPOINT ["node", "/home/app/hook-wrapper/hook-wrapper.js"]
4 changes: 2 additions & 2 deletions hooks/cascading-scans/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as install
FROM node:22-alpine AS install
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production

FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/finding-post-processing/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/generic-webhook/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
4 changes: 2 additions & 2 deletions hooks/notification/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as install
FROM node:22-alpine AS install
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production

FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/persistence-azure-monitor/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG baseImageTag
ARG namespace
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/persistence-defectdojo/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM gradle:jdk17 as build
FROM gradle:jdk17 AS build
COPY . /home/gradle/src
WORKDIR /home/gradle/src
RUN ./gradlew build -x test
Expand Down
2 changes: 1 addition & 1 deletion hooks/persistence-dependencytrack/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/persistence-elastic/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion hooks/update-field-hook/hook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion lurker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand Down
4 changes: 2 additions & 2 deletions operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

# Build the manager binary
FROM golang:1.22 as builder
FROM golang:1.22 AS builder

WORKDIR /workspace
# Copy the Go Modules manifests
Expand All @@ -28,7 +28,7 @@ RUN CGO_ENABLED=0 go build -a -o manager main.go
FROM gcr.io/distroless/static:nonroot

ENV VERSION=unknown
ENV TELEMETRY_ENABLED "true"
ENV TELEMETRY_ENABLED="true"

WORKDIR /
COPY --from=builder /workspace/manager .
Expand Down
4 changes: 2 additions & 2 deletions parser-sdk/nodejs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM node:22-alpine as build
FROM node:22-alpine AS build
WORKDIR /home/app
COPY package.json package-lock.json ./
RUN npm ci --production
Expand All @@ -16,5 +16,5 @@ COPY --chown=app:app ./parser-wrapper.js ./parser-wrapper.js
COPY --chown=app:app ./parser-utils.js ./parser-utils.js
COPY --chown=app:app ./findings-schema.json ./findings-schema.json
USER 1001
ENV NODE_ENV ${NODE_ENV:-production}
ENV NODE_ENV=${NODE_ENV:-production}
ENTRYPOINT ["node", "/home/app/parser-wrapper/parser-wrapper.js"]
2 changes: 1 addition & 1 deletion scanners/amass/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
4 changes: 2 additions & 2 deletions scanners/cmseek/scanner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

# Base Image
FROM python:3.9-alpine as base
FROM python:3.9-alpine AS base
ARG scannerVersion
# Install git and Clone Repo
RUN apk add git \
Expand All @@ -12,7 +12,7 @@ RUN apk add git \
&& rm -r .git

# Runtime Image
FROM python:3.9-alpine as runtime
FROM python:3.9-alpine AS runtime

# Create cmseek user/group and give access
RUN addgroup --system --gid 1001 cmseek && adduser cmseek --system --uid 1001 --ingroup cmseek
Expand Down
14 changes: 0 additions & 14 deletions scanners/doggo/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,3 @@ ARG baseImageTag
FROM ${namespace:-securecodebox}/parser-sdk-nodejs:${baseImageTag:-latest}
WORKDIR /home/app/parser-wrapper/parser/
COPY --chown=app:app ./parser.js ./parser.js

# Additional packages
# ARG namespace
# ARG baseImageTag
# FROM node:22-alpine as build
# RUN mkdir -p /home/app
# WORKDIR /home/app
# COPY package.json package-lock.json ./
# RUN npm ci --production
#
# FROM ${namespace:-securecodebox}/parser-sdk-nodejs:${baseImageTag:-latest}
# WORKDIR /home/app/parser-wrapper/parser/
# COPY --from=build --chown=app:app /home/app/node_modules/ ./node_modules/
# COPY --chown=app:app ./parser.js ./parser.js
2 changes: 1 addition & 1 deletion scanners/ncrack/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/nikto/scanner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM alpine:3.14 as build
FROM alpine:3.14 AS build
ARG scannerVersion
RUN apk add git
RUN git clone --depth 1 https://github.com/sullo/nikto.git /nikto
Expand Down
2 changes: 1 addition & 1 deletion scanners/nmap/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/sslyze/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
4 changes: 2 additions & 2 deletions scanners/typo3scan/scanner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: Apache-2.0

# Base Image
FROM python:3.9-alpine as base
FROM python:3.9-alpine AS base
ARG scannerVersion
# Install git and Clone Repo
RUN apk add git \
Expand All @@ -12,7 +12,7 @@ RUN apk add git \
&& rm -r .git .github doc

# Runtime Image
FROM python:3.9-alpine as runtime
FROM python:3.9-alpine AS runtime

# Create typo3scan user/group and give access
RUN addgroup --system --gid 1001 typo3scan && adduser typo3scan --system --uid 1001 --ingroup typo3scan
Expand Down
2 changes: 1 addition & 1 deletion scanners/zap-automation-framework/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down
2 changes: 1 addition & 1 deletion scanners/zap/parser/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

ARG namespace
ARG baseImageTag
FROM node:22-alpine as build
FROM node:22-alpine AS build
RUN mkdir -p /home/app
WORKDIR /home/app
COPY package.json package-lock.json ./
Expand Down