diff options
author | vikaskumar <vkumar@aarnanetworks.com> | 2020-09-24 13:07:57 +0530 |
---|---|---|
committer | vikaskumar <vkumar@aarnanetworks.com> | 2020-09-24 13:44:30 +0530 |
commit | 2b971d6e7f234a5ff192c2a0415e4fde6f32f849 (patch) | |
tree | 8692f941710d393cae7e76ad53728f6b79cb031a /src/tools/emcoui/Dockerfile | |
parent | 425795c7d4e6ce81932918aca2a1462384d4507f (diff) |
initial commit of emcoui web app
Signed-off-by: vikaskumar <vkumar@aarnanetworks.com>
Change-Id: I78b2f9f4ec3aa0b7a660a21e2ee2d61a3cddadc6
Issue-ID: MULTICLOUD-1225
Diffstat (limited to 'src/tools/emcoui/Dockerfile')
-rw-r--r-- | src/tools/emcoui/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tools/emcoui/Dockerfile b/src/tools/emcoui/Dockerfile new file mode 100644 index 00000000..6f0cc2fa --- /dev/null +++ b/src/tools/emcoui/Dockerfile @@ -0,0 +1,19 @@ +# => Build container +FROM node:alpine as builder +WORKDIR /app +COPY package.json . +COPY package-lock.json . +RUN npm install +COPY src ./src +COPY public ./public +# => Pass the reuired version +RUN REACT_APP_VERSION=v1.0.0 npm run build + +# => Run container +FROM nginx:1.15.2-alpine + +# Static build +COPY --from=builder /app/build /usr/share/nginx/html/ + +# Default port exposure +EXPOSE 80 |