25 lines
469 B
Docker
25 lines
469 B
Docker
FROM vn-node
|
|
|
|
ENV NODE_ENV test
|
|
|
|
WORKDIR /salix
|
|
COPY package.json .
|
|
COPY loopback loopback
|
|
RUN npm install --only=prod
|
|
|
|
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 ["pm2-docker", "./loopback/server/server.js"]
|