-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
48 lines (37 loc) · 1.1 KB
/
Dockerfile
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
FROM ubuntu:14.04
MAINTAINER jaz <[email protected]>
RUN apt-get update && \
apt-get clean && \
apt-get install -y wget curl git vim && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get clean && \
apt-get install -y nginx php5-fpm php5-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mv /etc/php5/fpm/php.ini /etc/php5/fpm/php1.ini && \
mv /etc/nginx/sites-available/default /etc/nginx/sites-available/default1
COPY php.ini /etc/php5/fpm/
COPY default /etc/nginx/sites-available/
COPY index.php /usr/share/nginx/html/
COPY . /root/
RUN apt-get update && \
apt-get clean && \
apt-get install -y openssh-server --no-install-recommends && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN mkdir /var/run/sshd && \
echo 'root:root' | chpasswd && \
sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin yes/' /etc/ssh/sshd_config && \
sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
ENV s=127.0.0.1
ENV m=aes-256-cfb
ENV k=12345678
ENV p=443
ENV c=1080
ENV n=50
WORKDIR /root/
RUN chmod +x /root/run.sh
EXPOSE 22 80 443
CMD ["/root/run.sh"]