workspace and php-fpm change source

This commit is contained in:
mouyong
2019-08-09 08:52:32 +08:00
parent da8f0d0864
commit f64adc2114
9 changed files with 68 additions and 5 deletions

View File

@ -24,6 +24,15 @@ ARG LARADOCK_PHP_VERSION
# Set Environment Variables
ENV DEBIAN_FRONTEND noninteractive
# If you're in China, or you need to change sources, will be set CHANGE_SOURCE to true in .env.
ADD ubuntu.sources.list /etc/apt/ubuntu.sources.list
ARG CHANGE_SOURCE=false
RUN if [ ${CHANGE_SOURCE} = true ]; then \
mv /etc/apt/sources.list /etc/apt/sources.list.back && \
mv /etc/apt/ubuntu.sources.list /etc/apt/sources.list \
;fi
# Start as root
USER root