1 Star 1 Fork 2

Discuz / DiscuzX-Docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.34 KB
一键复制 编辑 原始数据 按行查看 历史
monkeye 提交于 2023-04-22 17:35 . 纯dockerfile版本
FROM centos:7.9.2009
MAINTAINER monkeye "monkeye@discuz.vip"
ARG timezone
ENV TIMEZONE=${timezone:-"Asia/Shanghai"}
# Install
RUN yum install -y epel-release \
&& yum -y install wget \
&& wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo \
&& rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm \
&& yum install -y --enablerepo=remi --enablerepo=remi-php81 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-mysql php-odbc php-pdo php-mssql php-mysqli php-gd php-xml php-pear php-bcmath php-pecl-swoole php-pecl-redis php-pecl-mongo --skip-broken \
&& yum install -y --enablerepo=remi --enablerepo=remi-php81 php-fpm \
&& yum install -y nginx \
&& groupadd www \
&& useradd -g www -s /sbin/nologin www \
&& yum install vim -y
# Config
RUN cp /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && \
echo "${TIMEZONE}" > /etc/timezone
# Copy
COPY nginx.conf /etc/nginx/nginx.conf
COPY www.conf /etc/php-fpm.d/www.conf
COPY php.ini /etc/php.ini
RUN mkdir /run/php-fpm && rm /usr/share/nginx/html/* -rf
ADD upload/ /usr/share/nginx/html/
COPY run.sh /mnt/run.sh
RUN chmod 755 /mnt/run.sh
RUN chmod -R 777 /usr/share/nginx/html/data
RUN chmod -R 777 /usr/share/nginx/html/config
RUN chmod -R 777 /usr/share/nginx/html/uc_client/data
RUN chmod -R 777 /usr/share/nginx/html/uc_server/data
EXPOSE 80
CMD ["/mnt/run.sh"]
1
https://gitee.com/Discuz/discuz-x-docker.git
git@gitee.com:Discuz/discuz-x-docker.git
Discuz
discuz-x-docker
DiscuzX-Docker
Dockerfile

搜索帮助