2018-12-27 11:54:16 +00:00
|
|
|
FROM vn-node
|
2018-12-21 10:36:44 +00:00
|
|
|
|
2018-12-27 11:54:16 +00:00
|
|
|
RUN mkdir /salix
|
2018-12-21 10:36:44 +00:00
|
|
|
WORKDIR /salix
|
2018-12-27 11:54:16 +00:00
|
|
|
|
|
|
|
COPY dist .
|
|
|
|
COPY modules .
|
|
|
|
#COPY node_modules .
|
|
|
|
COPY loopback .
|
|
|
|
COPY dist/webpack-assets.json loopback/client
|
|
|
|
|
|
|
|
RUN rm /etc/nginx/sites-enabled/default
|
|
|
|
COPY services/nginx/temp/nginx.conf /etc/nginx/sites-available/salix
|
|
|
|
RUN ln -s /etc/nginx/sites-available/salix /etc/nginx/sites-enabled/salix
|
|
|
|
|
2018-12-21 10:36:44 +00:00
|
|
|
CMD ["pm2-docker", "./server/server.js"]
|