-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
47 lines (35 loc) · 1.06 KB
/
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
FROM node:latest
RUN apt-get update && apt-get install -y \
openssh-server
# Uncomment if you want to enable password login
#RUN echo 'root:myPasswordHere' | chpasswd
#RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
#RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config
ENV PARSE_HOME /parse
ENV PARSE_CLOUD /parse/parse-cloud
ADD start.sh ${PARSE_HOME}/start.sh
ADD index.js ${PARSE_HOME}/index.js
ADD package.json ${PARSE_HOME}/package.json
COPY parse-cloud $PARSE_CLOUD
RUN chmod +x ${PARSE_HOME}/start.sh
WORKDIR $PARSE_HOME
RUN npm install
## ENV
#ENV APP_ID myAppId
#ENV MASTER_KEY myMasterKey
#ENV DATABASE_URI mongodb://localhost:27017/dev
#ENV CLOUD_HOME ${PARSE_CLOUD}/parse-cloud
#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 PARSE_PORT 1337
EXPOSE $PARSE_PORT
VOLUME $PARSE_CLOUD
ENV NODE_PATH .
CMD ["sh", "-c", "${PARSE_HOME}/start.sh"]