HUB
Sign inSign up
pm2 logo

thinhhv/pm2

By thinhhv

•Updated over 5 years ago

Image
0

569

thinhhv/pm2 repository overview

⁠Docker layer PM2 + YARN

⁠How to use:

  • Dockerfile example:
    # Dockerfile
    # ----------
    
    FROM thinhhv/pm2:latest
    
    # Bundle APP files
    COPY src src/
    COPY package.json .
    COPY ecosystem-production.json .
    
    # Install app dependencies
    ENV NPM_CONFIG_LOGLEVEL warn
    RUN yarn install --production
    
    # Show current folder structure in logs
    RUN ls -al -R
    
    CMD [ "pm2-runtime", "start", "ecosystem-production.json" ]
    

⁠How to build:

docker build -t thinhhv/pm2:latest .
Tag summary
Recent tags
Content type
Image
Digest
Size
344.3 MB
Last updated
over 5 years ago
docker pull thinhhv/pm2:latest