Skip to content

Commit 258924a

Browse files
author
Didier Franc
committed
Create Dockerfile
``` # Create image docker build -t username/parse-server . # Then you can run it or push it to Docker Hub docker push username/parse-server ```
1 parent 506b17b commit 258924a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Dockerfile

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM node:latest
2+
3+
RUN mkdir parse
4+
5+
ADD . /parse
6+
WORKDIR /parse
7+
RUN npm install
8+
9+
ENV APP_ID setYourAppId
10+
ENV MASTER_KEY setYourMasterKey
11+
ENV DATABASE_URI setMongoDBURI
12+
13+
# Optional (default : 'parse/cloud/main.js')
14+
# ENV CLOUD_CODE_MAIN cloudCodePath
15+
16+
# Optional (default : '/parse')
17+
# ENV PARSE_MOUNT mountPath
18+
19+
EXPOSE 1337
20+
21+
# Uncomment if you want to access cloud code outside of your container
22+
# A main.js file must be present, if not Parse will not start
23+
24+
# VOLUME /parse/cloud
25+
26+
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)