Dockerizing Parse Server (#3005)

* Add Dockerfile

* Add Docker image docs

* Remove default PARSE_SERVER_CLOUD_CODE_MAIN setting + update docs

* Update docs

* Update documentation
This commit is contained in:
Kirill Kravinsky
2016-11-03 17:38:05 -04:00
committed by Florent Vilmart
parent 2fb4f89324
commit 71fb6cef5e
3 changed files with 51 additions and 1 deletions

21
Dockerfile Normal file
View File

@@ -0,0 +1,21 @@
FROM node:boron
RUN mkdir -p /parse-server
COPY ./ /parse-server/
RUN mkdir -p /parse-server/config
VOLUME /parse-server/config
RUN mkdir -p /parse-server/cloud
VOLUME /parse-server/cloud
WORKDIR /parse-server
RUN npm install && \
npm run build
ENV PORT=1337
EXPOSE $PORT
ENTRYPOINT ["npm", "start", "--"]