Skip to content
Merged
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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ARG VERSION
ARG CDX_PATH=/opt/cyclonedx-py
ARG CDX_VENV=${CDX_PATH}/venv

RUN addgroup --system --gid 1000 cyclonedx \
&& adduser --system --shell /bin/bash --uid 1000 --ingroup cyclonedx cyclonedx

RUN mkdir -p "${CDX_PATH}"
RUN python -m venv --without-pip "${CDX_VENV}"
ENV VIRTUAL_ENV=${CDX_VENV}
Expand All @@ -19,4 +22,5 @@ RUN pip --python "${CDX_VENV}" \
"cyclonedx-bom==${VERSION}" --find-links "file://${CDX_PATH}/dist"
RUN rm -rf ${CDX_PATH}/dist

USER cyclonedx
ENTRYPOINT ["cyclonedx-py"]