forked from openshift/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.plugins.demo2
28 lines (22 loc) · 933 Bytes
/
Dockerfile.plugins.demo2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This image is used for testing OpenShift Console dynamic plugin capabilities.
#
# See frontend/dynamic-demo-plugin/README.md for details.
# Stage 0: build the demo plugin
# Manually pre-build the demo plugin:
# cd frontend
# yarn install
# cd dynamic-demo-plugin
# yarn install
# yarn build
# Stage 1: build the target image
FROM node:10
COPY ./frontend/dynamic-demo-plugin/dist /opt/console-demo-plugin/static
COPY ./frontend/dynamic-demo-plugin/node_modules /opt/console-demo-plugin/node_modules
COPY ./frontend/dynamic-demo-plugin/http-server.sh /opt/console-demo-plugin/http-server.sh
LABEL io.k8s.display-name="OpenShift Console Demo Plugin" \
io.k8s.description="Sample OpenShift Console dynamic plugin used for testing purposes." \
io.openshift.tags="openshift" \
maintainer="Vojtech Szocs <[email protected]>"
USER node
WORKDIR /opt/console-demo-plugin
ENTRYPOINT [ "./http-server.sh", "./static" ]