-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (20 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM php:5.6-apache
COPY files /tmp/files/
RUN chown -R root:root /var/www/html/ && \
chmod -R 755 /var/www/html && \
mv /tmp/files/flag.sh / && \
mv /tmp/files/start.sh / && \
chmod +x /flag.sh /start.sh && \
sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
sed -i '/security/d' /etc/apt/sources.list && \
apt-get update && \
apt-get install libaio1 libnuma1 psmisc libmecab2 -y && \
DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/files/mysql-common_5.7.29-1debian9_amd64.deb && \
DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/files/mysql-community-client_5.7.29-1debian9_amd64.deb && \
DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/files/mysql-client_5.7.29-1debian9_amd64.deb && \
DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/files/mysql-community-server_5.7.29-1debian9_amd64.deb && \
DEBIAN_FRONTEND=noninteractive dpkg -i /tmp/files/mysql-server_5.7.29-1debian9_amd64.deb && \
rm -rf /tmp/files && \
docker-php-ext-install mysqli pdo pdo_mysql && \
rm -rf /var/lib/apt/lists/*
CMD /start.sh