We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33f80e commit f598dd5Copy full SHA for f598dd5
Dockerfile
@@ -5,6 +5,9 @@ ARG VERSION
5
ARG CDX_PATH=/opt/cyclonedx-py
6
ARG CDX_VENV=${CDX_PATH}/venv
7
8
+RUN addgroup --system --gid 1000 cyclonedx \
9
+ && adduser --system --shell /bin/bash --uid 1000 --ingroup cyclonedx cyclonedx
10
+
11
RUN mkdir -p "${CDX_PATH}"
12
RUN python -m venv --without-pip "${CDX_VENV}"
13
ENV VIRTUAL_ENV=${CDX_VENV}
@@ -19,4 +22,5 @@ RUN pip --python "${CDX_VENV}" \
19
22
"cyclonedx-bom==${VERSION}" --find-links "file://${CDX_PATH}/dist"
20
23
RUN rm -rf ${CDX_PATH}/dist
21
24
25
+USER cyclonedx
26
ENTRYPOINT ["cyclonedx-py"]
0 commit comments