forked from RackHD/on-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 665 Bytes
/
Copy pathDockerfile
File metadata and controls
20 lines (16 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2016, EMC, Inc.
FROM rackhd/on-core
COPY . /RackHD/on-http/
WORKDIR /RackHD/on-http
RUN mkdir -p ./node_modules \
&& ln -s /RackHD/on-core ./node_modules/on-core \
&& ln -s /RackHD/on-core/node_modules/di ./node_modules/di \
&& npm install --ignore-scripts --production \
&& npm install apidoc && npm run apidoc \
&& echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --update ipmitool@testing unzip \
&& /RackHD/on-http/install-web-ui.sh \
&& /RackHD/on-http/install-swagger-ui.sh
EXPOSE 9080 9090
VOLUME /RackHD/on-http/static/http/common
CMD [ "node", "/RackHD/on-http/index.js" ]