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" ]