File size: 428 Bytes
e3144f7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:21

WORKDIR /app

COPY testProjectExocoreWeb-main.zip .

RUN apt-get update && apt-get install -y unzip && \
    unzip testProjectExocoreWeb-main.zip && \
    chown -R node:node testProjectExocoreWeb-main && \
    chmod -R u+rwX testProjectExocoreWeb-main && \
    npm install -g pm2

USER node

WORKDIR /app/testProjectExocoreWeb-main

RUN npm install

EXPOSE 7860

CMD ["pm2-runtime", "start", "npm", "--", "start"]