Skip to content
Snippets Groups Projects
Dockerfile 344 B
Newer Older
  • Learn to ignore specific revisions
  • FORESTIER Fabien's avatar
    FORESTIER Fabien committed
    # Stage 0, based on Node.js, to build and compile Angular
    
    Damien DESPRES's avatar
    Damien DESPRES committed
    FROM node:16-slim
    
    FORESTIER Fabien's avatar
    FORESTIER Fabien committed
    
    # Copy the package.json file first in order to cache the modules
    COPY ./package.json /app/package.json
    WORKDIR /app
    # Install npm dependencies
    RUN npm install
    # Copy the project
    
    COPY ./helpers ./helpers
    COPY ./routes ./routes
    COPY ./index.js .
    
    FORESTIER Fabien's avatar
    FORESTIER Fabien committed
    
    CMD [ "npm", "start" ]