Skip to content

Docker hub image does not run as cli #23

@maheshma-opengov

Description

@maheshma-opengov

Issue

  • Followed instructions as per this document to initiate a ScimVerify cli test , but it looks like this docker image is a non-cli version of scimverify build using Dockerfile and not Dockerfile.cli, so it basically starts up a node express server.
  • I built the image using Dockerfile.cli locally, but it failed as it was not pulling devDependencies like ajv.
  • I fixed this locally by changing npm ci command. Below is the entire diff
diff --git a/Dockerfile.cli b/Dockerfile.cli
index 83f967f..f8b681f 100644
--- a/Dockerfile.cli
+++ b/Dockerfile.cli
@@ -9,7 +9,7 @@ WORKDIR /app
 COPY package*.json ./

 # Install dependencies
-RUN npm ci --only=production
+RUN npm ci

 # Create a smaller final image
 FROM node:21-alpine

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions