Skip to content

Instantly share code, notes, and snippets.

@flovilmart
Created December 25, 2015 18:01
Show Gist options
  • Save flovilmart/bc4fdac122b3a1b0839b to your computer and use it in GitHub Desktop.
Save flovilmart/bc4fdac122b3a1b0839b to your computer and use it in GitHub Desktop.
Parse on Google Cloud Platform, Custom container
node_modules
.dockerignore
Dockerfile
npm-debug.log
.git
.hg
.svn
# 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