FROM vn-node ENV NODE_ENV test WORKDIR /salix COPY package.json . COPY loopback/package.json loopback/ RUN npm install --only=prod COPY loopback loopback COPY back back COPY dist dist COPY modules modules COPY \ modules.yml \ LICENSE \ README.md \ ./ WORKDIR /etc/nginx COPY services/nginx/temp/nginx.conf sites-available/salix RUN rm sites-enabled/default && ln -s ../sites-available/salix sites-enabled/salix WORKDIR /salix CMD service nginx start && pm2-docker ./loopback/server/server.js