forked from acmeair/acmeair-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (23 loc) · 793 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
28
29
30
31
32
33
34
35
36
37
# Format: FROM repository[:version]
FROM ubuntu:latest
# Format: MAINTAINER Name <email@addr.ess>
MAINTAINER Yang Lei <yanglei@us.ibm.com>
# Installation:
# Update apt-get sources AND install NodeJS and npm
RUN apt-get update && apt-get install -y nodejs && apt-get install -y npm
# The real logic
ADD ./ /var/apps/acmeair-nodejs
RUN \
rm -fr /var/apps/acmeair-nodejs/.git ;\
cd /var/apps/acmeair-nodejs ;\
npm install;\
chmod +x run.sh
WORKDIR /var/apps/acmeair-nodejs
EXPOSE 9080 9443
ENV APP_NAME app.js
# Use the following to indicate authentication micro-service location: host:port
#ENV AUTH_SERVICE
# Use the following environment variable to define datasource location
#ENV MONGO_URL mongodb://localhost:27017/acmeair
#ENV CLOUDANT_URL
CMD ["./run.sh"]