Skip to content
Snippets Groups Projects
Select Git revision
  • 63a45a31d8cdb3fba72c215e92d2c82bcae1386a
  • tutorial-12 default
  • tutorial-10
  • tutorial-11
  • tutorial-9
  • tutorial-8
  • tutorial-7
  • tutorial-6
  • tutorial-5
  • tutorial-4
  • tutorial-3
  • tutorial-2
  • tutorial-1
  • main protected
14 results

Dockerfile

Blame
  • user avatar
    Chao Zhan authored
    974cc0d7
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 376 B
    FROM node:18
    
    # Create app directory
    WORKDIR /usr/src/app
    
    # Install app dependencies
    # A wildcard is used to ensure both package.json AND package-lock.json are copied
    # where available (npm@5+)
    COPY package*.json ./
    
    RUN npm install
    # If you are building your code for production
    # RUN npm ci --omit=dev
    
    # Bundle app source
    COPY . .
    
    EXPOSE 8080
    
    CMD [ "node", "index.js" ]