-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
71 lines (57 loc) · 1.89 KB
/
Dockerfile
File metadata and controls
71 lines (57 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
FROM ubuntu:16.04
MAINTAINER Duc Dao
ENV TERM xterm
# Update
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install software-properties-common python3-software-properties -y
# Git
RUN apt-get install git git-core -y
# Zsh
RUN apt-get install zsh -y
# Java
RUN add-apt-repository ppa:webupd8team/java -y && \
apt-get update && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \
apt-get install -y oracle-java8-installer
# Nginx
RUN apt-get install nginx -y
# PHP
RUN apt-get update && apt-get -y --no-install-recommends install php7.0-fpm
RUN apt-get install --allow-unauthenticated php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-gd libcurl3 php7.0-intl php7.0-xsl php7.0-zip php7.0-mbstring php7.0-dom php7.0-simplexml php7.0-xml -y
# MySQL
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install mysql-server
# Composer
RUN apt-get install curl -y
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
# NodeJS
RUN apt-get install nodejs nodejs-legacy -y
RUN apt-get install npm -y
RUN npm install -g grunt-cli
# Ruby
RUN apt-get install ruby ruby-bundler -y
RUN gem update --system
RUN gem install sass
# Tools
RUN apt-get install wget -y
RUN apt-get install vim -y
RUN apt-get install sshpass -y
RUN apt-get install htop -y
RUN apt-get install ranger -y
RUN apt-get install sl -y
RUN apt-get install nmap -y
RUN apt-get install tmux -y
RUN apt-get install xclip -y
RUN apt-get install cowsay -y
RUN apt-get install figlet -y
RUN apt-get install lolcat -y
RUN apt-get install boxes -y
# Restart
RUN chown `whoami`:www-data -R /var/www/html
RUN find /var/www/html -type d -exec chmod 775 {} \;
RUN find /var/www/html -type f -exec chmod 664 {} \;
RUN service nginx start
RUN service php7.0-fpm restart
RUN service mysql start
EXPOSE 8000