-
Notifications
You must be signed in to change notification settings - Fork 307
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (25 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
33 lines (25 loc) · 825 Bytes
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
# SPDX-FileCopyrightText: Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES.
# All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# syntax=docker/dockerfile:1.3
ARG BASE_IMG=nvcr.io/nvidia/cuda
ARG BASE_IMG_TAG=12.4.1-base-ubuntu22.04
FROM $BASE_IMG:$BASE_IMG_TAG AS base
RUN apt-get update && apt-get install -y \
bzip2 \
ca-certificates \
curl \
git \
libgl1-mesa-glx \
vim \
wget \
&& apt-get clean
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH=/root/.local/bin:$PATH
ENV UV_LINK_MODE=copy
RUN --mount=type=cache,target=/root/.cache/uv \
uv python install 3.12 \
&& uv venv --python 3.12 /opt/nv_ingest_runtime
ENV VIRTUAL_ENV=/opt/nv_ingest_runtime
ENV PATH=/opt/nv_ingest_runtime/bin:/root/.local/bin:$PATH
SHELL ["/bin/bash", "-c"]