Skip to content

Commit d5d9073

Browse files
ganlbestlong
authored andcommitted
Fix CHANGE_SOURCE argument always false for nginx's Dockerfile (laradock#1786)
1 parent 6a3b3fa commit d5d9073

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

DOCUMENTATION/content/documentation/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1886,7 +1886,7 @@ This error sometimes happens because your Laravel application isn't running on t
18861886

18871887
## I get stuck when building nginx on `fetch http://mirrors.aliyun.com/alpine/v3.5/main/x86_64/APKINDEX.tar.gz`
18881888

1889-
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-293296687), removing the line `RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories` from `nginx/Dockerfile` solves the problem.
1889+
As stated on [#749](https://github.com/laradock/laradock/issues/749#issuecomment-419652646), Already fixed,just set `CHANGE_SOURCE` to false.
18901890

18911891
## Custom composer repo packagist url and npm registry url
18921892

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ services:
193193
args:
194194
- PHP_UPSTREAM_CONTAINER=${NGINX_PHP_UPSTREAM_CONTAINER}
195195
- PHP_UPSTREAM_PORT=${NGINX_PHP_UPSTREAM_PORT}
196+
- CHANGE_SOURCE=${CHANGE_SOURCE}
196197
volumes:
197198
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
198199
- ${NGINX_HOST_LOG_PATH}:/var/log/nginx

0 commit comments

Comments
 (0)