Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FROM alpine AS builder
WORKDIR /home/app
RUN apk add --no-cache --update nodejs nodejs-npm
COPY package.json package-lock.json ./
RUN npm install --production

FROM  alpine
WORKDIR /home/app
RUN apk add --no-cache --update nodejs nodejs-npm
RUN npm i -g pm2 && node -v && npm -v
COPY --from=builder /home/app/node_modules ./node_modules
COPY . .
# CMD [ "npm", "start" ]
CMD [ "pm2-runtime", "start", "app.js" ]

About

docker-node-alpine

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages