Meteor Docker File
FROM codenvy/shellinabox
# 
RUN sudo apt-get update -qq && \
    sudo apt-get -yqq install curl
#
RUN cd /home/user && \
    sudo curl -o /home/user/install_meteor.sh https://install.meteor.com 2> /dev/null && \
    sudo sh install_meteor.sh 2> /dev/null && \
    sudo meteor create app && \
    sudo rm app/app.*
#
ENV CODENVY_APP_PORT_8081_HTTP 8081
EXPOSE 8081
#
# Add meteor packages
RUN cd /home/user/app && sudo meteor add accounts-ui
# 
ADD $app$ /home/user/app/
# 
CMD cd /home/user/app && sudo meteor --port 8081
#
Hot-deployed changes works when you replace
ADD $app$ /home/user/app/with
VOLUME ["/home/user/app"] ENV CODENVY_APP_BIND_DIR /home/user/appbut you also have to make sure you have a .meteor directory in your project with the correct configuration files.
You can actually mount sources but not add them. This way you can preview changes in real time:
ReplyDeleteVOLUME ["/home/user/app"]
ENV CODENVY_APP_BIND_DIR /home/user/app
Use this instead of ADD.
thanks
ReplyDelete