Skip to content
Snippets Groups Projects
Dockerfile 222 B
Newer Older
  • Learn to ignore specific revisions
  • Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    # Based on Node.js
    FROM node:12.16
    
    
    WORKDIR /app
    
    # Copy the package.json file first in order to cache the modules
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    COPY . .
    
    
    # Install npm dependencies
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    RUN npm install
    
    
    # expose port 3000
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    EXPOSE 3000
    
    Hugo SUBTIL's avatar
    Hugo SUBTIL committed
    CMD ["npm", "start"]