Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # docker build -t timebandit/meteor-1-5 --rm .
- # docker run -v /host/path:/home/code -it timebandit/meteor-1-5 bash
- FROM ubuntu:xenial
- # update the system
- RUN apt-get update && apt-get -y install curl \
- sudo \
- apt-utils \
- locales \
- nano
- # Set the locale
- RUN sudo sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
- locale-gen
- ENV LANG en_US.UTF-8
- ENV LANGUAGE en_US:en
- ENV LC_ALL en_US.UTF-8
- # set the root password
- # RUN echo "root:root" | chpasswd
- # create a user
- RUN useradd -ms /bin/bash user
- RUN adduser user sudo
- RUN echo 'user:user' | chpasswd
- ENV HOME=/home
- WORKDIR $HOME/user
- # allow writes to the home directory
- USER root
- RUN chmod 777 /home
- # install meteor
- # RUN echo $user_pass | curl https://install.meteor.com/ | sh
- RUN curl https://install.meteor.com/ | sh
- # ADD https://install.meteor.com /usr/local/bin/meteor/install.sh
- # CMD ["/usr/local/bin/meteor/install.sh"]
- #docker build --build-arg user_pass=user -t timebandit/meteor-1-5 --rm .
- ARG user_pass
- USER user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement