-
Notifications
You must be signed in to change notification settings - Fork 179
/
Dockerfile
32 lines (26 loc) · 926 Bytes
/
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
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0
WORKDIR /app
RUN tdnf update -y && \
tdnf install -y \
git \
gcc \
gobject-introspection-devel \
cairo-gobject \
cairo-devel \
pkg-config \
libvirt-devel \
python3-devel \
python3-pip \
python3-virtualenv \
build-essential \
cairo-gobject-devel \
curl \
ca-certificates && \
tdnf clean all && \
rm -rf /var/cache/tdnf /tmp/*
RUN git clone --depth 1 --branch $(curl --silent "https://api.github.com/repos/microsoft/lisa/releases/latest" \
| grep '"tag_name":' \
| sed -E 's/.*"([^"]+)".*/\1/') https://github.com/microsoft/lisa.git /app/lisa
WORKDIR /app/lisa
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir --editable .[azure,libvirt,baremetal] --config-settings editable_mode=compat