Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. FROM ubuntu:latest
  2. LABEL maintainer "fuckoff@me"
  3.  
  4. #some general stuff
  5. #Add YARN repo
  6. RUN apt update && apt -y install curl apt-transport-https language-pack-en-base software-properties-common tzdata
  7. RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
  8. RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
  9.  
  10.  
  11. #Set correct timezone
  12. RUN ln -fs /usr/share/zoneinfo/Europe/Riga /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
  13.  
  14. #Add 5.6 REPO
  15. RUN locale-gen en_US.UTF-8
  16. ENV LANG en_US.UTF-8
  17. ENV LC_ALL en_US.UTF-8
  18. RUN apt-get install python-software-properties add-apt-repository ppa:ondrej/php
  19.  
  20. #update & install stuff
  21. RUN apt update && apt upgrade -y \
  22. && apt install -y vim nano git yarn nginx bzip2
  23.  
  24.  
  25. RUN apt-get install php5.6 php5.6-fpm php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip
  26.  
  27. RUN update-alternatives --set php /usr/bin/php5.6
  28.  
  29. RUN service php5.6-fpm restart
  30.  
  31.  
  32. RUN apt-get install -y php5.6-xdebug
  33. # #Expose http, https, xdebug
  34. EXPOSE 80 443
  35.  
  36. # # forward request and error logs to docker log collector
  37. RUN ln -sf /dev/stdout /var/log/nginx/access.log \
  38. && ln -sf /dev/stderr /var/log/nginx/error.log
  39.  
  40. WORKDIR /root
  41. ADD startup.sh ./
  42. RUN chmod a+x startup.sh
  43.  
  44. ADD setup_gulp.py /usr/local/bin/
  45. RUN chmod a+x /usr/local/bin/setup_gulp.py
  46.  
  47. ADD php.ini /etc/php/5.6/fpm/php.ini
  48.  
  49. # Installing composer globally
  50. RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
  51. RUN php composer-setup.php
  52. RUN php -r "unlink('composer-setup.php');"
  53. RUN mv composer.phar /usr/local/bin/composer
  54.  
  55. # Installing nodejs and npm
  56. RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
  57. RUN apt-get -y install nodejs
  58. WORKDIR /usr/lib
  59. RUN yarn global add gulp
  60. RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash
  61.  
  62. CMD ["/bin/bash"]
  63. #ENTRYPOINT ["bash"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement