-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
27 lines (19 loc) · 850 Bytes
/
Dockerfile
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
FROM hekailiang/jdk7
MAINTAINER Henry He <[email protected]>
# install git/maven/nodejs
RUN apt-get -y update && apt-get install --no-install-recommends -y -q curl git maven
# install nodejs
RUN curl http://nodejs.org/dist/v5.0.0/node-v5.0.0-linux-x64.tar.gz > nodejs.tar.gz
RUN tar xvzf nodejs.tar.gz && mv /node-v5.0.0-linux-x64 /nodejs && rm -rf nodejs.tar.gz
ENV PATH $PATH:/nodejs/bin
# install nodejs global modules
RUN npm install -g webpack
# clone the cloud-config project
RUN git clone https://github.com/hekailiang/cloud-config.git
# switch to cloud-config directory
WORKDIR cloud-config
# build entire project
RUN cd cloud-config-ui && npm install && cd .. && mvn clean install
# expose default port
EXPOSE 8001
CMD java -Dnamespace=testing -Dconfig.center.url=$ZK_URL -jar cloud-config-server/target/cloud-config-server-*.jar