Skip to content

Instantly share code, notes, and snippets.

@jiahaog
Last active November 14, 2015 17:34
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 jiahaog/a5f347344ae5e9e8d3a3 to your computer and use it in GitHub Desktop.
Save jiahaog/a5f347344ae5e9e8d3a3 to your computer and use it in GitHub Desktop.
Meteor Deployment
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
@jiahaog
Copy link
Author

jiahaog commented Nov 13, 2015

Simple Dockerfile for deployment with meteor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment