-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (11 loc) · 771 Bytes
/
Dockerfile
File metadata and controls
15 lines (11 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM phpswoole/swoole:php8.1
RUN printf "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free\ndeb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free" > /etc/apt/sources.list \
&& apt update && apt install -y cron geoipupdate \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN pecl install redis \
&& docker-php-ext-enable redis \
&& rm -rf /tmp/* /var/tmp/*
COPY ./ /var/www
COPY ./docker/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]