Skip to content

Instantly share code, notes, and snippets.

@obonyojimmy
Last active May 7, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save obonyojimmy/5e7d46837b5252e9d54d1b1caa53788b to your computer and use it in GitHub Desktop.
Save obonyojimmy/5e7d46837b5252e9d54d1b1caa53788b to your computer and use it in GitHub Desktop.
Meteor Docker
FROM node:12.16.1
# Install Meteor
ENV METEOR_ALLOW_SUPERUSER true
RUN curl https://install.meteor.com/ | sh
WORKDIR /home
ADD entrypoint.sh .
# cache npm heavy dependecies
ADD package.json App/
ADD npm-shrinkwrap.json App/
RUN cd App && meteor npm i
VOLUME ["/home/App"]
ENTRYPOINT ["./entrypoint.sh"]
CMD [""]
#!/bin/bash
set -e
cd /home/App
meteor npm install;
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment