All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
29 lines
543 B
Docker
29 lines
543 B
Docker
FROM python:3.12.10-alpine3.21
|
|
|
|
ARG APP_DIR=/opt/app
|
|
|
|
RUN \
|
|
adduser -s /bin/sh -D user &&\
|
|
mkdir -p $APP_DIR &&\
|
|
chown user:user $APP_DIR
|
|
|
|
USER user
|
|
WORKDIR $APP_DIR
|
|
|
|
COPY src/requirements.txt .
|
|
COPY src/sbom-dt-dd.py .
|
|
COPY dependencytrack-client/ ./dependencytrack-client
|
|
COPY defectdojo-client/ ./defectdojo-client
|
|
|
|
RUN \
|
|
python -m venv .venv &&\
|
|
. ./.venv/bin/activate &&\
|
|
pip install -r requirements.txt &&\
|
|
pip install -r dependencytrack-client/requirements.txt &&\
|
|
pip install -r defectdojo-client/requirements.txt
|
|
|
|
|
|
|
|
|
|
|