Last active
November 14, 2015 17:34
-
-
Save jiahaog/a5f347344ae5e9e8d3a3 to your computer and use it in GitHub Desktop.
Meteor Deployment
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 ubuntu:14.04 | |
RUN apt-get update | |
RUN apt-get -y install curl | |
RUN apt-get -y install build-essential # required for npm install after build | |
RUN curl https://install.meteor.com/ | sh | |
# install node 0.10 | |
# Somehow later versions of node (tested with v4) causes errors with fibres, | |
# so stick to the version mentioned in the readme after meteor build | |
RUN curl -sL https://deb.nodesource.com/setup_0.10 | sudo -E bash - | |
RUN apt-get install -y nodejs | |
# Python is required to npm install fibres | |
RUN apt-get install -y python | |
COPY . /src | |
# build meteor files into /build | |
RUN (cd /src && meteor build /build --directory --verbose) | |
WORKDIR /build/bundle | |
# install node dependencies | |
RUN (cd programs/server && npm install) | |
CMD node main.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Simple
Dockerfile
for deployment with meteor