Created
December 25, 2015 18:01
-
-
Save flovilmart/bc4fdac122b3a1b0839b to your computer and use it in GitHub Desktop.
Parse on Google Cloud Platform, Custom container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
.dockerignore | |
Dockerfile | |
npm-debug.log | |
.git | |
.hg | |
.svn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the proper base image here | |
FROM flovilmart/parse-anywhere | |
# Copy the contents of the folder (cloud, public) in the docker container | |
COPY . /app/ | |
# Install the dependencies from your package.json | |
RUN npm install --unsafe-perm || \ | |
((if [ -f npm-debug.log ]; then \ | |
cat npm-debug.log; \ | |
fi) && false) | |
# run parse-anywhere from here | |
# as your npm start command should still be parse-anywhere | |
# npm start should be valid too | |
CMD parse-anywhere |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment