ARG RELEASE |
ARG LAUNCHPAD_BUILD_ARCH |
LABEL org.opencontainers.image.ref.name=ubuntu |
LABEL org.opencontainers.image.version=20.04 |
ADD file:6a209aa51ba684c0a39769619c42058ca99311b87563c7b079319a8bb91bec1f in / |
CMD ["/bin/bash"] |
RUN /bin/sh -c sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list # buildkit |
RUN /bin/sh -c sed -i 's/security.ubuntu.com/mirrors.ustc.edu.cn/g' /etc/apt/sources.list # buildkit |
RUN /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential sudo net-tools expect locales libncurses5-dev libncursesw5-dev tftpd python libc6-dev-i386 lib32z1 cmake bc xz-utils automake libtool libevdev-dev pkg-config && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c dpkg --add-architecture i386 && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q zlib1g:i386 && apt-get clean && rm -rf /var/lib/apt/lists/* # buildkit |
RUN /bin/sh -c locale-gen en_US.UTF-8 && update-locale # buildkit |
RUN /bin/sh -c adduser --disabled-password --gecos '' zynq && usermod -aG sudo zynq && echo "zynq ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers # buildkit |
COPY sdk-miniopencv.sh / # buildkit |
RUN /bin/sh -c chmod a+rx /sdk-miniopencv.sh && mkdir -p /opt/Xilinx && /sdk-miniopencv.sh -d /opt/Xilinx/ && rm -f /sdk-miniopencv.sh # buildkit |
ADD xf86drm.h /opt/Xilinx/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi/usr/include # buildkit |
ADD xf86drmMode.h /opt/Xilinx/sysroots/cortexa9t2hf-neon-xilinx-linux-gnueabi/usr/include # buildkit |
RUN /bin/sh -c echo "dash dash/sh boolean false" | debconf-set-selections # buildkit |
RUN /bin/sh -c DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash # buildkit |
RUN /bin/sh -c echo "source /opt/Xilinx/environment-setup-cortexa9t2hf-neon-xilinx-linux-gnueabi" >> /etc/bash.bashrc # buildkit |
USER zynq |
ENV HOME=/home/zynq |
ENV LANG=en_US.UTF-8 |
ENV TERM=xterm-256color |
ENV GCC_COLORS=1 |
WORKDIR /home/zynq/ |