2018-12-27 11:54:16 +00:00
|
|
|
FROM vn-node
|
2018-12-21 10:36:44 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
ENV NODE_ENV test
|
|
|
|
|
2018-12-21 10:36:44 +00:00
|
|
|
WORKDIR /salix
|
2018-12-27 15:10:55 +00:00
|
|
|
COPY package.json .
|
|
|
|
COPY loopback loopback
|
|
|
|
RUN npm install --only=prod
|
2018-12-27 11:54:16 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
COPY back back
|
|
|
|
COPY dist dist
|
|
|
|
COPY modules modules
|
|
|
|
COPY \
|
|
|
|
modules.yml \
|
|
|
|
LICENSE \
|
|
|
|
README.md \
|
|
|
|
./
|
2018-12-27 11:54:16 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
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
|
2018-12-27 11:54:16 +00:00
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
WORKDIR /salix
|
|
|
|
CMD ["pm2-docker", "./loopback/server/server.js"]
|