66 Unstar Star 299 Fork 96

原设软件 / ShirneCMSPHP

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Dockerfile 1.17 KB
Copy Edit Web IDE Raw Blame History
shirne authored 2020-03-11 16:21 . docker中启用apache的rewrite模块
FROM php:7.2.28-apache
# 修改apt源为阿里云镜像
RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak
RUN echo 'deb https://mirrors.aliyun.com/debian stable main contrib non-free' > /etc/apt/sources.list \
&& echo 'deb https://mirrors.aliyun.com/debian stable-updates main contrib non-free' >> /etc/apt/sources.list
RUN a2enmod rewrite
# php modules
RUN apt-get update \
&& apt-get install -y \
libxmp-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libwebp-dev \
devscripts
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-webp-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/ \
&& docker-php-ext-install exif gd bcmath mysqli pdo_mysql zip
RUN mkdir -p /data/wwwroot/shirnecms/public
RUN echo '<?php phpinfo();' > /data/wwwroot/shirnecms/public/index.php
# 可以拷贝文件到镜像
#COPY ../src /data/wwwroot/shirnecms
#COPY ../dbscript /data/wwwroot/shirnecms/dbscript
COPY php.ini-dev /usr/local/etc/php
COPY sites.conf /etc/apache2/sites-available/000-default.conf
RUN chown www-data:www-data -Rf /data/wwwroot
# 修改默认端口
# EXPOSE 80
WORKDIR /data/wwwroot/shirnecms

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/shirnecn/ShirneCMS.git
git@gitee.com:shirnecn/ShirneCMS.git
shirnecn
ShirneCMS
ShirneCMS
master

Search