Commit 039f9e32 authored by Sam's avatar Sam
Browse files

Ubuntu mirror can be parameterized

parent 7d43d689
......@@ -4,8 +4,10 @@ MAINTAINER z4yx <z4yx@users.noreply.github.com>
# build with docker build --build-arg PETA_VERSION=2018.1 --build-arg PETA_RUN_FILE=petalinux-v2018.1-final-installer.run -t petalinux:2018.1 .
ARG UBUNTU_MIRROR=mirror.tuna.tsinghua.edu.cn
#install dependences:
RUN sed -i.bak s/archive.ubuntu.com/mirror.tuna.tsinghua.edu.cn/g /etc/apt/sources.list && \
RUN sed -i.bak s/archive.ubuntu.com/${UBUNTU_MIRROR}/g /etc/apt/sources.list && \
dpkg --add-architecture i386 && apt-get update && apt-get install -y \
build-essential \
sudo \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment