Last active
May 7, 2020 18:28
-
-
Save obonyojimmy/5e7d46837b5252e9d54d1b1caa53788b to your computer and use it in GitHub Desktop.
Meteor Docker
This file contains 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
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 [""] |
This file contains 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
#!/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