Advertisement
Guest User

Untitled

a guest
Jun 20th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. # docker build -t timebandit/meteor-1-5 --rm .
  2. # docker run -v /host/path:/home/code -it timebandit/meteor-1-5 bash
  3.  
  4. FROM ubuntu:xenial
  5.  
  6. # update the system
  7. RUN apt-get update && apt-get -y install curl \
  8. sudo \
  9. apt-utils \
  10. locales \
  11. nano
  12.  
  13. # Set the locale
  14. RUN sudo sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
  15. locale-gen
  16. ENV LANG en_US.UTF-8
  17. ENV LANGUAGE en_US:en
  18. ENV LC_ALL en_US.UTF-8
  19.  
  20. # set the root password
  21. # RUN echo "root:root" | chpasswd
  22.  
  23. # create a user
  24. RUN useradd -ms /bin/bash user
  25. RUN adduser user sudo
  26. RUN echo 'user:user' | chpasswd
  27.  
  28. ENV HOME=/home
  29. WORKDIR $HOME/user
  30.  
  31. # allow writes to the home directory
  32. USER root
  33. RUN chmod 777 /home
  34.  
  35. # install meteor
  36. # RUN echo $user_pass | curl https://install.meteor.com/ | sh
  37. RUN curl https://install.meteor.com/ | sh
  38. # ADD https://install.meteor.com /usr/local/bin/meteor/install.sh
  39. # CMD ["/usr/local/bin/meteor/install.sh"]
  40. #docker build --build-arg user_pass=user -t timebandit/meteor-1-5 --rm .
  41. ARG user_pass
  42. USER user
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement