forked from le31ei/ctf_challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (20 loc) · 1020 Bytes
/
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
FROM php:5.6-apache
LABEL maintainer="le31ei <[email protected]>"
COPY ./files/html.zip /
COPY ./files/tmp_html.zip /
COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
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 unzip
RUN docker-php-ext-install mysql
ENTRYPOINT [ "/docker-entrypoint.sh" ]