Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
JackPlowman committed Sep 29, 2024
1 parent 4b6f7f4 commit 52e9b50
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 52e9b50

Please sign in to comment.