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.
15 lines
249 B
15 lines
249 B
3 years ago
|
# 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"]
|