diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..28ff7b9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +#checkov:skip=CKV_DOCKER_2 +#checkov:skip=CKV_DOCKER_3 +FROM python:3.12-alpine + +WORKDIR /analyser + +COPY pyproject.toml poetry.lock ./ +RUN pip install --no-cache-dir poetry==1.8.3 \ + && poetry install --no-dev + +COPY analyser ./analyser + +CMD [ "python", "-m", "analyser" ] diff --git a/Justfile b/Justfile index 7fa948c..b898904 100644 --- a/Justfile +++ b/Justfile @@ -42,6 +42,10 @@ unit-test-debug: validate-schema: poetry run check-jsonschema --schemafile test/schema_validation/repository_statistics_schema.json test/schema_validation/repository_statistics.json +# Build the Docker image +docker-build: + docker build -t jackplowman/repository-analysis:latest . + # ------------------------------------------------------------------------------ # Ruff - Set up red-knot when it's ready # ------------------------------------------------------------------------------