add ubuntu sources.list

This commit is contained in:
alone
2019-11-30 08:51:23 +08:00
parent b5314e5769
commit 24361ca818
4 changed files with 9 additions and 85 deletions

View File

@ -36,13 +36,13 @@ ENV PUID ${PUID}
ARG PGID=1000
ENV PGID ${PGID}
ARG CHANGE_SOURCE=false
ARG UBUNTU_SOURCE
COPY ./sources.sh /tmp/sources.sh
RUN if [ ${CHANGE_SOURCE} = true ]; then \
chmod +x /tmp/sources.sh && \
# bash /tmp/sources.sh aliyun
# ./tmp/sources.sh aliyun
/bin/bash /tmp/sources.sh aliyun && \
/bin/sh -c /tmp/sources.sh ${UBUNTU_SOURCE} && \
rm -rf /tmp/sources.sh \
;fi
# always run apt update when start and after add new source list, then clean up at end.