forked from le31ei/ctf_challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·32 lines (22 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
21
22
23
24
25
26
27
28
29
30
31
32
FROM php:5.6-apache
LABEL maintainer="le31ei <[email protected]>"
RUN set -ex \
&& echo " \
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib\n \
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib\n \
deb http://mirrors.aliyun.com/debian-security buster/updates main\n \
deb-src http://mirrors.aliyun.com/debian-security buster/updates main\n \
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib\n \
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib\n \
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib\n \
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib\n" > /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y mariadb-client
WORKDIR /tmp
ADD ./files/html/db.sql db.sql
ADD ./wait-for-it.sh /
ADD ./docker-entrypoint.sh /
RUN chmod +x /wait-for-it.sh
RUN chmod +x /docker-entrypoint.sh
RUN docker-php-ext-install mysqli
ENTRYPOINT [ "/docker-entrypoint.sh" ]