13 lines
205 B

# getting base image ubuntu
FROM alpine:latest
RUN apk add --no-cache nodejs npm
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN npm install pm2 -g
EXPOSE 3000
CMD ["pm2-runtime", "ecosystem.config.js"]