Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
ThinkSAAS
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
github镜像
ThinkSAAS
Commits
3925e0ce
Commit
3925e0ce
authored
4 years ago
by
ThinkSAAS
Browse files
Options
Downloads
Patches
Plain Diff
Dockerfile
parent
d9e7d881
No related branches found
Branches containing commit
Tags
3.22
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+32
-0
32 additions, 0 deletions
Dockerfile
with
32 additions
and
0 deletions
Dockerfile
+
32
−
0
View file @
3925e0ce
FROM
php:7.2-apache
RUN
apt-get update
\
# 相关依赖必须手动安装
&& apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev \
# memcached 的相关依赖
&& apt-get install -y libmemcached-dev zlib1g-dev \
# 安装扩展
&& docker-php-ext-install -j$(nproc) iconv \
# 如果安装的扩展需要自定义配置时
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
# pecl 安卓mcrypt php从7.2开始不再在源码里支持mcrypt扩展而转到pecl方式支持
&& pecl install mcrypt-1.0.1 \
&& docker-php-ext-enable mcrypt \
# 其他扩展
&& docker-php-ext-install mysqli \
&& docker-php-ext-install pdo_mysql \
# pecl安装php的memcached扩展
&& pecl install memcached \
# 启用memcached 扩展
&& docker-php-ext-enable memcached \
# pecl 安装php的redis扩展
&& pecl install redis \
# 启用redis扩展
&& docker-php-ext-enable redis
COPY
. /var/www/html/
RUN
chmod
-R
755 /var/www/html/cache
RUN
chmod
-R
755 /var/www/html/data
RUN
chmod
-R
755 /var/www/html/tslogs
RUN
chmod
-R
755 /var/www/html/upgrade
RUN
chmod
-R
755 /var/www/html/uploadfile
ENV
APACHE_RUN_USER www-data
ENV
APACHE_RUN_GROUP www-data
ENV
APACHE_LOG_DIR /var/log/apache2
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment