-
Notifications
You must be signed in to change notification settings - Fork 166
/
Dockerfile
48 lines (36 loc) · 911 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
38
39
40
41
42
43
44
45
46
47
48
FROM node:5
ENV PARSE_HOME /parse
#ADD . ${PARSE_HOME}
#ADD *.js ${PARSE_HOME}/
#ADD *.json ${PARSE_HOME}/
ADD package.json ${PARSE_HOME}/
ADD jsconfig.json ${PARSE_HOME}/
## deployment is unnecessary
#ADD app.json ${PARSE_HOME}/app.json # heroku
#ADD azuredeploy.json ${PARSE_HOME}/azuredeploy.json # azure
ENV CLOUD_CODE_HOME ${PARSE_HOME}/cloud
ADD cloud/*.js $CLOUD_CODE_HOME/
WORKDIR $PARSE_HOME
RUN npm install
ADD index.js ${PARSE_HOME}/
## ENV
#ENV APP_ID myAppId
#ENV MASTER_KEY myMasterKey
#ENV DATABASE_URI mongodb://localhost:27017/dev
#ENV CLOUD_CODE_MAIN ${CLOUD_CODE_HOME}/main.js
#ENV PARSE_MOUNT /parse
#ENV COLLECTION_PREFIX
#ENV CLIENT_KEY
#ENV REST_API_KEY
#ENV DOTNET_KEY
#ENV JAVASCRIPT_KEY
#ENV DOTNET_KEY
#ENV FILE_KEY
#ENV FACEBOOK_APP_IDS "xx,xxx"
#ENV SERVER_URL
#ENV MAX_UPLOAD_SIZE
ENV PORT 1337
EXPOSE $PORT
VOLUME $CLOUD_CODE_HOME
ENV NODE_PATH .
CMD ["npm", "start"]