configs: Update scripts and config for new ui
This commit is contained in:
parent
74e8c3801a
commit
102a0878ac
7 changed files with 44 additions and 55 deletions
|
|
@ -1,3 +1,15 @@
|
|||
FROM node:lts-alpine as nodebuild
|
||||
|
||||
WORKDIR /ui
|
||||
|
||||
RUN apk --no-cache add python2 build-base
|
||||
|
||||
COPY frontend/ui/ .
|
||||
|
||||
RUN npm install --network-timeout100000
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM nginx:stable-alpine
|
||||
|
||||
ENV FIC_BASEURL=/ \
|
||||
|
|
@ -11,10 +23,4 @@ COPY configs/nginx-chbase.sh /docker-entrypoint.d/40-update-baseurl.sh
|
|||
COPY configs/fic-auth-docker.conf /etc/nginx/fic-auth.conf
|
||||
COPY configs/nginx-docker.conf /etc/nginx/templates/default.conf.template
|
||||
|
||||
COPY frontend/static /srv/htdocs-frontend
|
||||
|
||||
# Dereference symlink
|
||||
COPY frontend/static/css/glyphicon.css /srv/htdocs-frontend/css/
|
||||
COPY admin/static/fonts/* /srv/htdocs-frontend/fonts/
|
||||
COPY frontend/static/js/angular.min.js frontend/static/js/angular-route.min.js frontend/static/js/angular-sanitize.min.js frontend/static/js/bootstrap.min.js frontend/static/js/common.js frontend/static/js/d3.v3.min.js frontend/static/js/jquery.min.js /srv/htdocs-frontend/js/
|
||||
COPY admin/static/js/i18n/* /srv/htdocs-frontend/js/i18n/
|
||||
COPY --from=nodebuild /ui/build/ /srv/htdocs-frontend
|
||||
|
|
|
|||
Reference in a new issue