salix/Dockerfile

26 lines
522 B
Docker
Raw Normal View History

2018-12-27 11:54:16 +00:00
FROM vn-node
2018-12-27 15:10:55 +00:00
ENV NODE_ENV test
WORKDIR /salix
2018-12-27 15:10:55 +00:00
COPY package.json .
2018-12-27 15:34:48 +00:00
COPY loopback/package.json loopback/
2018-12-27 15:10:55 +00:00
RUN npm install --only=prod
2018-12-27 11:54:16 +00:00
2018-12-27 15:34:48 +00:00
COPY loopback loopback
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
2018-12-28 15:22:31 +00:00
CMD service nginx start && pm2-docker ./loopback/server/server.js