Docker - 059
备注
created by || rick
⏲️ Release Date // 2024-01-07
💀 Solvers // 7
🧩 Type // docker
flag
HMV{h1kinG_1s_s0_fUn}
运行 docker
建议对 Dockerfile 做一定修改,便于加快镜像的编译
FROM php:7.3-apache
# apt 更换镜像源,并更新软件包列表信息
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list &&
sed -i 's/security.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
RUN apt-get update
RUN apt update && apt install -y mariadb-server mariadb-client && apt install -y supervisor
RUN docker-php-ext-install mysqli
COPY . /var/www/html
RUN chmod -R 0755 /var/www/html
COPY config/supervisord.conf /etc/supervisord.conf
EXPOSE 80
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]