Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
```
# Create image
docker build -t username/parse-server .

# Then you can run it or push it to Docker Hub
docker push username/parse-server
```
  • Loading branch information
Didier Franc committed Feb 1, 2016
1 parent 506b17b commit 258924a
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM node:latest

RUN mkdir parse

ADD . /parse
WORKDIR /parse
RUN npm install

ENV APP_ID setYourAppId
ENV MASTER_KEY setYourMasterKey
ENV DATABASE_URI setMongoDBURI

# Optional (default : 'parse/cloud/main.js')
# ENV CLOUD_CODE_MAIN cloudCodePath

# Optional (default : '/parse')
# ENV PARSE_MOUNT mountPath

EXPOSE 1337

# Uncomment if you want to access cloud code outside of your container
# A main.js file must be present, if not Parse will not start

# VOLUME /parse/cloud

CMD [ "npm", "start" ]

0 comments on commit 258924a

Please sign in to comment.