-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
22 lines (15 loc) · 992 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ccr.ccs.tencentyun.com/tcb_public/ubuntu:focal
LABEL Maintainer="oldhu <me@oldhu.com>" \
Description="Discuz! Q container with Nginx & PHP-FPM based on Ubuntu bionic."
ARG DEBIAN_FRONTEND=noninteractive
ARG TZ=Asia/Shanghai
RUN apt-get update --no-install-recommends && \
apt-get install -y --no-install-recommends tzdata apt-utils && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get install -y --no-install-recommends ca-certificates nano php-fpm nginx cron openssl php-mysql php-gd php-bcmath php-mbstring php-xml php-curl php-exif curl && \
rm -rf /var/lib/apt/lists/* && \
sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron
COPY root /
RUN chown -R www-data:www-data /var/www/discuz
RUN curl https://discuzq-docs-1258344699.cos.ap-guangzhou.myqcloud.com/setup.php -o /usr/sbin/setup.php
EXPOSE 80
CMD ["/usr/sbin/supervisord", "-c", "/etc/supervisord.conf"]