22 Star 85 Fork 47

liufee / cms

Gitee — Enterprise-level DevOps R&D management platform
Join Gitee
Clone or download
Dockerfile 1.69 KB
Copy Edit Web IDE Raw Blame History
liufee authored 2020-08-14 21:01 . fix:ajax response format
ARG PHP_VER=7.4
FROM php:${PHP_VER}-fpm
MAINTAINER liufee job@feehi.com
ARG COMPOSER_VER=2.0.0-alpha3
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libpq-dev \
unzip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install pdo mysqli pdo_mysql pdo_pgsql
RUN set -eux; \
curl --fail --location --retry 3 --output /usr/bin/composer https://getcomposer.org/download/${COMPOSER_VER}/composer.phar \
&& chmod +x /usr/bin/composer
#RUN cd /usr/src \
#&& curl --fail --location --retry 3 --output /usr/src/vendor.zip https://resource-1251086492.cos.ap-shanghai.myqcloud.com/vendor.zip \
#&& unzip /usr/src/vendor.zip && rm -rf /usr/src/vendor.zip
ENV FeehiCMSPath="/usr/local/feehicms"
ENV DBDSN="sqlite:/data/feehi.db"
ENV DBUser="root"
ENV DBPassword=""
ENV DBCharset="utf8"
ENV TablePrefix=""
ENV AdminUsername="admin"
ENV AdminPassword="123456"
ENV FrontendUri="//127.0.0.1/"
ENV Listening="0.0.0.0:80"
ENV Env="Development"
COPY . ${FeehiCMSPath}
RUN cd ${FeehiCMSPath} \
#&& cp -rf /usr/src/vendor ${FeehiCMSPath} && rm -rf /usr/src/vendor \
#&& cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini \
&& composer update -vvv && composer dump-autoload -o \
&& cp ${FeehiCMSPath}/docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh \
&& chmod +x /usr/local/bin/docker-entrypoint.sh \
&& rm -rf ${FeehiCMSPath}/install/install.lock \
ENV PATH=$PATH:$FeehiCMSPath
WORKDIR ${FeehiCMSPath}
EXPOSE 80
ENTRYPOINT ["/bin/bash", "/usr/local/bin/docker-entrypoint.sh"]
CMD ["start"]

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/liufee/cms.git
git@git.oschina.net:liufee/cms.git
liufee
cms
cms
master

Search

181749 a2d7925e 1850385 181749 9f8568a7 1850385