initial commit of emcoui web app
[multicloud/k8s.git] / src / tools / emcoui / Dockerfile
1 # => Build container
2 FROM node:alpine as builder
3 WORKDIR /app
4 COPY package.json .
5 COPY package-lock.json .
6 RUN npm install
7 COPY src ./src
8 COPY public ./public
9 # => Pass the reuired version
10 RUN REACT_APP_VERSION=v1.0.0 npm run build
11
12 # => Run container
13 FROM nginx:1.15.2-alpine
14
15 # Static build
16 COPY --from=builder /app/build /usr/share/nginx/html/
17
18 # Default port exposure
19 EXPOSE 80