-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile
24 lines (20 loc) · 993 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
FROM ubuntu:24.04@sha256:278628f08d4979fb9af9ead44277dbc9c92c2465922310916ad0c46ec9999295
# Adding rust binaries to PATH.
ENV PATH="$PATH:/root/.cargo/bin"
WORKDIR /root
# Install all required packages in one go to optimize the image
# https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
# DEBIAN_FRONTEND is set for tzdata.
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install --no-install-recommends -y \
build-essential unzip ca-certificates curl gcc git libssl-dev pkg-config ssh \
clang llvm nasm \
ocaml ocamlbuild wget pkg-config libtool autoconf autotools-dev automake \
screen expect \
# cleanup
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# Install rustup and a fixed version of Rust.
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly-2023-12-31
RUN rustup component add rust-src
RUN cargo install cargo-xbuild
RUN git clone --recursive https://github.com/intel/vtpm-td.git