CoolFace
Apppublic

quanvndzai/LinuxNode2

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
Dockerfile35 linesDownload Raw Back to root
1FROM node:latest2 3# Create app directory4WORKDIR /usr/src/app5 6USER root7 8# Install app dependencies9# A wildcard is used to ensure both package.json AND package-lock.json are copied10# where available (npm@5+)11COPY package*.json ./12 13RUN apt update && apt install git -y14RUN git clone https://github.com/fsquillace/junest.git ~/.local/share/junest15RUN export PATH=~/.local/share/junest/bin:$PATH16 17RUN npm install18RUN npm install express19# If you are building your code for production20# RUN npm ci --only=production21 22# Bundle app source23COPY . .24 25RUN npm install pm2 -g26ENV PM2_PUBLIC_KEY yrzs0totz1wqh2d27ENV PM2_SECRET_KEY uhyz7tcoimeb81b28 29RUN pm2-runtime index.js -i 8 &30 31RUN chown 777 /usr/src/app/32RUN chown -R 777 /usr/src/app/*33 34EXPOSE 786035CMD ["pm2-runtime", "main.js"]