From 258924a4444a802308d077f630e6aebd4e8d7f85 Mon Sep 17 00:00:00 2001 From: Didier Franc Date: Mon, 1 Feb 2016 17:38:51 +0100 Subject: [PATCH] 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 ``` --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..b5b2a885d --- /dev/null +++ b/Dockerfile @@ -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" ]