php53安装yaml
This commit is contained in:
parent
9ee005bffb
commit
ea86e785de
4
.env
4
.env
@ -21,8 +21,8 @@ TZ=Asia/Shanghai
|
|||||||
# mirrors.aliyun.com
|
# mirrors.aliyun.com
|
||||||
# mirrors.ustc.edu.cn
|
# mirrors.ustc.edu.cn
|
||||||
#
|
#
|
||||||
CONTAINER_PACKAGE_URL=mirrors.aliyun.com
|
# CONTAINER_PACKAGE_URL=mirrors.aliyun.com
|
||||||
# CONTAINER_PACKAGE_URL=mirrors.163.com
|
CONTAINER_PACKAGE_URL=mirrors.163.com
|
||||||
|
|
||||||
#
|
#
|
||||||
# Nginx
|
# Nginx
|
||||||
|
|||||||
2
hosts
2
hosts
@ -1,5 +1,5 @@
|
|||||||
172.20.0.254 mkt.api.gaore.com mkt.gaore.com
|
172.20.0.254 mkt.api.gaore.com mkt.gaore.com
|
||||||
172.20.0.254 callback.api.gaore.com
|
172.20.0.254 callback.api.gaore.com
|
||||||
172.20.0.254 stat.gaore.com
|
172.20.0.254 stat.gaore.com
|
||||||
172.20.0.254 msdk.gaore.com msdk.api.gaore.com game.gaore.com
|
172.20.0.254 msdk.gaore.com msdk.api.gaore.com game.gaore.com pay.api.gaore.com
|
||||||
192.168.1.202 sso.gaore.com admintest.gaore.com oss.gaore.com
|
192.168.1.202 sso.gaore.com admintest.gaore.com oss.gaore.com
|
||||||
@ -76,7 +76,7 @@ server {
|
|||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name msdk.gaore.com;
|
server_name msdk.gaore.com msdk.api.gaore.com;
|
||||||
index index.php;
|
index index.php;
|
||||||
root /www/gaore/msdk.gaore.com;
|
root /www/gaore/msdk.gaore.com;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# pay.gaore.com
|
# pay.gaore.com
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name pay.gaore.com;
|
server_name pay.gaore.com pay.api.gaore.com;
|
||||||
index index.php;
|
index index.php;
|
||||||
root /www/gaore/pay.gaore.com/public;
|
root /www/gaore/pay.gaore.com/public;
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
# sdk.gaore.com
|
# sdk.gaore.com
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name sdk.gaore.com;
|
server_name sdk.gaore.com xcx.uu89.com;
|
||||||
index index.php;
|
index index.php;
|
||||||
root /www/gaore/sdk.gaore.com/public;
|
root /www/gaore/sdk.gaore.com/public;
|
||||||
|
|
||||||
|
|||||||
@ -5,14 +5,23 @@ ARG TZ
|
|||||||
ARG PHP_EXTENSIONS
|
ARG PHP_EXTENSIONS
|
||||||
ARG CONTAINER_PACKAGE_URL
|
ARG CONTAINER_PACKAGE_URL
|
||||||
|
|
||||||
|
# 替换源列表,更新软件包索引
|
||||||
|
RUN echo "deb http://archive.debian.org/debian/ stretch main contrib non-free" > /etc/apt/sources.list && \
|
||||||
|
echo "deb-src http://archive.debian.org/debian/ stretch main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
|
echo "deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
|
echo "deb-src http://archive.debian.org/debian-security/ stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
|
echo "deb http://archive.debian.org/debian/ stretch-backports main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
|
apt-get update
|
||||||
|
|
||||||
|
RUN apt-get install -y --allow-unauthenticated --no-install-recommends libyaml-dev
|
||||||
|
|
||||||
COPY ./docker-php-ext-enable /usr/local/bin/
|
COPY ./docker-php-ext-enable /usr/local/bin/
|
||||||
RUN chmod +x /usr/local/bin/docker-php-ext-enable
|
RUN chmod +x /usr/local/bin/docker-php-ext-enable
|
||||||
|
|
||||||
COPY ./extensions /tmp/extensions
|
COPY ./extensions /tmp/extensions
|
||||||
WORKDIR /tmp/extensions
|
WORKDIR /tmp/extensions
|
||||||
RUN chmod +x install.sh \
|
RUN chmod +x install.sh \
|
||||||
&& sh install.sh \
|
&& sh install.sh
|
||||||
&& rm -fr /tmp/extensions
|
|
||||||
|
|
||||||
# php image's www-data user uid & gid are 82, change them to 1000 (primary user)
|
# php image's www-data user uid & gid are 82, change them to 1000 (primary user)
|
||||||
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
|
RUN usermod -u 1000 www-data && groupmod -g 1000 www-data
|
||||||
|
|||||||
@ -305,7 +305,7 @@ fi
|
|||||||
|
|
||||||
if [ -z "${EXTENSIONS##*,yaml,*}" ]; then
|
if [ -z "${EXTENSIONS##*,yaml,*}" ]; then
|
||||||
echo "---------- Install yaml ----------"
|
echo "---------- Install yaml ----------"
|
||||||
apt-get -y install libyaml-dev
|
#apt-get -y install libyaml-dev
|
||||||
installExtensionFromTgz yaml-1.2.0
|
installExtensionFromTgz yaml-1.2.0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user