-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
57 lines (44 loc) · 1.33 KB
/
Dockerfile
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# syntax=docker/dockerfile:1.4.1
# Dockerfile for SDK CI
ARG DIST=focal
FROM ubuntu:$DIST
ARG DIST=focal
ARG HAL_VERSION="0.12.*"
ARG NUX_VERSION="0.10.*"
ARG COMPILER_VERSION="0.10.*"
ARG ONNX_RUNTIME_VERSION="1.15.*"
ARG ARCHIVE=https://internal-archive.furiosa.dev
ENV DEBIAN_FRONTEND="noninteractive"
# Install basic dependencies
RUN <<EOF
set -eu
apt update
apt install --no-install-recommends --assume-yes \
git \
ca-certificates \
apt-transport-https \
gnupg \
wget \
python3-opencv \
gcc-aarch64-linux-gnu \
build-essential \
cmake
apt-key adv --keyserver keyserver.ubuntu.com --recv-key 5F03AFA423A751913F249259814F888B20B09A7E
rm -rf /var/lib/apt/lists/*
EOF
# Install internal dependencies
COPY <<EOF /etc/apt/sources.list.d/furiosa.list
deb [arch=amd64] $ARCHIVE/ubuntu $DIST restricted
deb [arch=amd64] $ARCHIVE/ubuntu $DIST-nightly restricted
EOF
RUN --mount=type=secret,id=furiosa.conf,dst=/etc/apt/auth.conf.d/furiosa.conf,required <<EOF
set -eu
apt update
apt install --no-install-recommends --assume-yes \
furiosa-libhal-warboy=$HAL_VERSION \
furiosa-libnux=$NUX_VERSION \
furiosa-compiler=$COMPILER_VERSION \
libonnxruntime=$ONNX_RUNTIME_VERSION
rm -rf /var/lib/apt/lists/*
EOF
COPY . .