From: Ezhilarasi Date: Thu, 14 Mar 2019 07:28:46 +0000 (+0530) Subject: Formatted Installation steps X-Git-Tag: 0.4.2~187^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F20%2F82220%2F1;p=ccsdk%2Fcds.git Formatted Installation steps Change-Id: I8fe0b3924a4682433e9ab5a4486fa8ad9d0c3553 Issue-ID: CCSDK-917 Signed-off-by: Ezhilarasi --- diff --git a/docs/CBA/sections/installation/index.rst b/docs/CBA/sections/installation/index.rst index cbd26ecdd..60a6db2af 100644 --- a/docs/CBA/sections/installation/index.rst +++ b/docs/CBA/sections/installation/index.rst @@ -4,45 +4,43 @@ Installation ============ -.. toctree:: - :maxdepth: 1 Building client html and js files ================================= -FROM alpine:3.8 as builder + * FROM alpine:3.8 as builder -RUN apk add --no-cache npm + * RUN apk add --no-cache npm -WORKDIR /opt/cds-ui/client/ + * WORKDIR /opt/cds-ui/client/ -COPY client/package.json /opt/cds-ui/client/ + * COPY client/package.json /opt/cds-ui/client/ -RUN npm install + * RUN npm install -COPY client /opt/cds-ui/client/ + * COPY client /opt/cds-ui/client/ -RUN npm run build + * RUN npm run build Building and creating server ============================ -FROM alpine:3.8 + * FROM alpine:3.8 -WORKDIR /opt/cds-ui/ + * WORKDIR /opt/cds-ui/ -RUN apk add --no-cache npm + * RUN apk add --no-cache npm -COPY server/package.json /opt/cds-ui/ + * COPY server/package.json /opt/cds-ui/ -RUN npm install + * RUN npm install -COPY server /opt/cds-ui/ -COPY --from=builder /opt/cds-ui/server/public /opt/cds-ui/public + * COPY server /opt/cds-ui/ + * COPY --from=builder /opt/cds-ui/server/public /opt/cds-ui/public -RUN npm run build + * RUN npm run build -EXPOSE 3000 + * EXPOSE 3000 -CMD [ "npm", "start" ] \ No newline at end of file + * CMD [ "npm", "start" ] \ No newline at end of file