forked from overture-stack/arranger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.Dockerfile
More file actions
24 lines (18 loc) · 792 Bytes
/
ui.Dockerfile
File metadata and controls
24 lines (18 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM nginx
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install curl -y
RUN apt-get install sudo -y
RUN curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - && apt-get install nodejs -y
# bootstraps arranger dependencies
WORKDIR /app
COPY . /app
RUN npm ci
RUN npm config set unsafe-perm true && npm run bootstrap
# builds admin ui and storybook
RUN cd modules/admin-ui && REACT_APP_ARRANGER_ADMIN_ROOT=/admin/graphql npm run build
RUN cd modules/components && STORYBOOK_ES_HOST=http://elasticsearch:9200 STORYBOOK_ARRANGER_API=/ npm run build-storybook
# copies build-bundles out
RUN cp -r modules/admin-ui/build ./arranger-admin
RUN cp -r modules/components/storybook-static ./arranger-storybook
COPY nginx.conf /etc/nginx/nginx.conf
CMD nginx -g "daemon off;"