diff options
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 |