#tradewind:update composer

This commit is contained in:
tradewind 2021-06-15 18:20:19 +08:00
parent c14f1fb6d5
commit 265009303e
4 changed files with 3 additions and 6 deletions

View File

@ -1,2 +1 @@
FROM mysql:5.7
MAINTAINER tradewind

View File

@ -1,5 +1,5 @@
FROM nginx:alpine
MAINTAINER tradewind
RUN sed -i \
's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' \
/etc/apk/repositories && apk update

View File

@ -1,7 +1,5 @@
FROM php:7.4-fpm-alpine
MAINTAINER tradewind
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add --no-cache --virtual .build-deps \
@ -39,6 +37,6 @@ RUN apk add --no-cache --virtual .build-deps \
&& apk del -f .build-deps
# 修改 composer 为国内镜像
RUN composer config -g repo.packagist composer https://packagist.laravel-china.org
RUN composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
WORKDIR /var/www

View File

@ -1,5 +1,5 @@
FROM redis:6.2-alpine
MAINTAINER tradewind
RUN sed -i \
's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' \
/etc/apk/repositories && apk update