workspace and php-fpm change source

This commit is contained in:
mouyong committed 2019-08-09 08:52:32 +08:00
1 parent da8f0d0864
commit f64adc2114
9 files changed
+68 -5

No files matched your search

+9
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