Adds frontend + configs to interal/tools/ui

This commit is contained in:
Damien Robichaud
2019-08-22 15:22:49 -07:00
parent 8a8698ccdd
commit aa2bf7ed08
51 changed files with 13386 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
FROM node:latest as builder
WORKDIR /app
COPY package.json package-lock.json /app/
RUN cd /app && npm set progress=false && npm install
COPY . /app
RUN cd /app && npm run build
FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
# todo(damienr74), put this in configmap.
COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=builder /app/dist/kustomize-search/ /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]