Docker

Current status

Docker distribution is part of the long-term strategy but is not part of the public test release. The CLI is distributed via npm.

Running CODYGIENE in Docker

You can run the CLI in a Docker container using Node.js:

FROM node:20-slim
RUN npm install -g codygiene@beta
WORKDIR /repo
COPY . .
RUN codygiene scan --format json -o /tmp/report.json

During the public test period, install from the beta tarball instead:

FROM node:20-slim
WORKDIR /repo
COPY codygiene-0.9.1-beta.1.tgz /tmp/
RUN npm install -g /tmp/codygiene-0.9.1-beta.1.tgz
COPY . .
RUN codygiene scan --format json -o /tmp/report.json

Future plans

An official CODYGIENE Docker image is planned for a future release. This will provide a pre-built container with the CLI installed, suitable for CI/CD pipelines that prefer container-based scanning.

Docker distribution is not a blocker for the public test period. The npm package works in any Node.js 20+ environment, including Docker containers you build yourself.