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