github.com/quay/claircore@v1.5.28/nodejs/testdata/README.md (about)

     1  # testdata
     2  
     3  ## sample-nodejs-app.tar
     4  
     5  This layer is derived from a sample NodeJS 16 image
     6  from https://nodejs.org/en/docs/guides/nodejs-docker-webapp/.
     7  
     8  It was created by the following Dockerfile:
     9  
    10  ```
    11  FROM node:16
    12  
    13  # Install app dependencies
    14  # A wildcard is used to ensure both package.json AND package-lock.json are copied
    15  # where available (npm@5+)
    16  COPY package*.json ./
    17  
    18  RUN npm install
    19  ```
    20  
    21  The related package.json is as follows:
    22  
    23  ```
    24  {
    25    "name": "docker_web_app",
    26    "version": "1.0.0",
    27    "description": "Node.js on Docker",
    28    "author": "First Last <first.last@example.com>",
    29    "main": "server.js",
    30    "scripts": {
    31      "start": "node server.js"
    32    },
    33    "dependencies": {
    34      "express": "^4.16.1"
    35    }
    36  }
    37  ```
    38  
    39  The layer tar was extracted from the image (top layer).