-
-
Notifications
You must be signed in to change notification settings - Fork 226
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (17 loc) · 648 Bytes
/
Dockerfile
File metadata and controls
22 lines (17 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:20.04
ARG IMAGE_NAME
ARG TT_SMI_VERSION
ARG BUILD_DATE
ENV PATH="/root/.cargo/bin:${PATH}"
RUN \
apt-get update && \
apt-get install -y curl git python3 python3-pip && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && \
pip3 install --no-cache-dir git+https://github.com/tenstorrent/tt-smi@v${TT_SMI_VERSION} && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENTRYPOINT ["/usr/local/bin/tt-smi"]
CMD ["--help"]
LABEL org.opencontainers.image.title="${IMAGE_NAME}"
LABEL org.opencontainers.image.version="${TT_SMI_VERSION}"
LABEL org.opencontainers.image.created="${BUILD_DATE}"