aboutsummaryrefslogtreecommitdiffstats
path: root/src/tools/emcoui/Dockerfile
blob: 6f0cc2fac623d0cbf88efcf2fbf0be6ff1fafc1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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