github.com/diadata-org/diadata@v1.4.593/build/Dockerfile-interlayIbtc (about)

     1  FROM node:18
     2  
     3  # Create app directory
     4  WORKDIR /usr/src/app
     5  
     6  # Install app dependencies
     7  # A wildcard is used to ensure both package.json AND package-lock.json are copied
     8  # where available (npm@5+)
     9  COPY cmd/interlay/package*.json ./
    10  
    11  RUN yarn install
    12  # If you are building your code for production
    13  # RUN npm ci --only=production
    14  
    15  # Bundle app source
    16  COPY cmd/interlay/index.js /usr/src/app/index.js
    17  COPY cmd/interlay/*.* /usr/src/app/
    18  
    19  ENV NODE_OPTIONS=--max_old_space_size=3072
    20  
    21  
    22  
    23  CMD [ "node", "index.js" ]