Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
304 B

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