99# docker run -p 127.0.0.1:8080:8080 ongoworks/reaction:0.1.0 #run
1010# ###########################################################
1111
12- FROM cmfatih/nodejs
12+ FROM node
1313MAINTAINER Aaron Judd <
[email protected] >
1414
1515# Install required packages first
16- RUN apt-get install -qq -y curl git gcc make build-essential
16+ RUN apt-get install -qq -y curl git
1717RUN curl https://install.meteor.com | /bin/sh
18- RUN npm install --silent -g forever demeteorizer meteorite
18+ RUN npm install --silent -g forever meteorite
1919
2020# Add current dir+subs to meteorsrc
2121ADD . ./meteorsrc
2222WORKDIR /meteorsrc
2323
24- # Demeteorize meteorsrc to /var/www/app
25- RUN mkdir -p /var/www/app && demeteorizer -n v0.10.26 -o /var/www/app
24+ # Bundle meteorsrc to /var/www/app
25+ RUN mrt install && meteor bundle --directory /var/www/app
2626
2727# Set the working directory to be used for commands that are run, including the default CMD below
2828WORKDIR /var/www/app
29-
30- RUN rm -rf /usr/local/meteor /usr/local/bin/meteor ~/.meteor
31- RUN cd /var/www/app/ && npm uninstall --silent fibers && npm update
29+ RUN rm -r programs/server/node_modules/fibers && npm install
[email protected] 3230
3331#
3432# Default ENV settings for meteor app
@@ -38,12 +36,11 @@ RUN cd /var/www/app/ && npm uninstall --silent fibers && npm update
3836ENV PORT 8080
3937ENV ROOT_URL "http://127.0.0.1"
4038ENV MONGO_URL "mongodb://127.0.0.1:3001/meteor"
41- # ENV MAIL_URL "smtp://user:password@mailhost:port/"
39+
4240
4341# Expose container port 8080 to the host (outside the container)
4442EXPOSE 8080
4543
46- WORKDIR /var/www/app
4744RUN touch .foreverignore
4845# Define default command that runs the node app on container port 8080
4946CMD forever -w ./main.js
0 commit comments