-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-ml
35 lines (27 loc) · 1.64 KB
/
Dockerfile-ml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:20.04
MAINTAINER Travis Collins <travis.collins@analog.com>
ENV XLNX_INSTALL_LOCATION=/opt/Xilinx
ENV DEBIAN_FRONTEND=noninteractive
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt clean
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt autoclean
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt update
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libpng-dev libfreetype6-dev libblas-dev liblapack-dev gfortran build-essential xorg
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y openjdk-8-jre openjdk-8-jdk libgtk2.0-0 libxss1 libxt6 zip unzip curl wget tar git xvfb
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y fakeroot libncurses5-dev libssl-dev ccache dfu-util u-boot-tools device-tree-compiler
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y libssl-dev mtools bc python python3 cpio zip unzip rsync file wget libicu66 libicu-dev screen
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y python3-pip iputils-ping sudo net-tools iproute2 bison flex libtinfo5
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg --add-architecture i386
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND apt-get install -y lib32stdc++6
# Install patched glibc
RUN wget https://github.com/mathworks/build-glibc-bz-19329-patch/releases/download/ubuntu-focal/all-packages.tar.gz
RUN tar xf all-packages.tar.gz
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg -i *.deb || true
# Set BASH as the default shell
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=$DEBIAN_FRONTEND dpkg-reconfigure dash
# Cleanup
RUN apt-get clean
# Add HSP
COPY mlhsp /mlhsp
# Entrypoint for runtime pre-processing
COPY docker-entrypoint-hdl.sh /usr/local/bin/docker-entrypoint.sh