Score
0
Watch 78 Star 208 Fork 93

七觞酒 / yiicmsPHP

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
yiicms 企业站 http://demo2.yiiphp.net spread retract

http://demo2.zbeijing.com.cn

  • PHP 78.0%
  • TSQL 11.4%
  • JavaScript 6.2%
  • CSS 3.4%
  • Dockerfile 0.3%
  • Other 0.7%
Clone or download
Dockerfile 1.60 KB
Copy Edit Web IDE Raw Blame History
七觞酒 authored 2020-02-06 11:44 . fix bug
FROM php:7.1-fpm-alpine
COPY . /var/www/yiicms
COPY ./nginx.conf /etc/nginx/conf.d/yiicms.conf
RUN MAIN_VERSION=$(cat /etc/alpine-release | cut -d '.' -f 0-2) \
&& mv /etc/apk/repositories /etc/apk/repositories-bak \
&& { \
echo "https://mirrors.aliyun.com/alpine/v${MAIN_VERSION}/main"; \
echo "https://mirrors.aliyun.com/alpine/v${MAIN_VERSION}/community"; \
} >> /etc/apk/repositories && \
apk add --no-cache nginx && \
mkdir -p /run/nginx && \
rm -f /etc/nginx/conf.d/default.conf && \
#php mysql-pdo gd2
docker-php-ext-install pdo_mysql && \
apk add freetype freetype-dev libpng-dev libjpeg-turbo libjpeg-turbo-dev && \
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
docker-php-ext-install -j$(nproc) gd && \
apk del freetype-dev libpng-dev libjpeg-turbo-dev && \
rm -f /var/cache/apk/* && \
cp -f "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini" && \
cp -f /var/www/yiicms/config/db.php.default /var/www/yiicms/config/db.php && \
sed -i -e "s/'dsn' => 'mysql:host=localhost;dbname=yiicms',/'dsn' => 'mysql:host=mysql;dbname=yiicms',/g" /var/www/yiicms/config/db.php && \
sed -i -e "s/'username' => 'root',/'username' => 'yiicms',/g" /var/www/yiicms/config/db.php && \
chmod -Rf 777 /var/www/yiicms/runtime && \
chmod -Rf 777 /var/www/yiicms/web/uploads && \
chmod -Rf 777 /var/www/yiicms/web/assets && \
mkdir -p /var/www/sh && \
echo -e "#!/bin/sh\n/usr/sbin/nginx\n/usr/local/sbin/php-fpm\n" >> /var/www/sh/start.sh
ENTRYPOINT [ "/bin/sh", "/var/www/sh/start.sh" ]

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/templi/yiicms.git
git@gitee.com:templi/yiicms.git
templi
yiicms
yiicms
master

Help Search