forked from NVIDIA/GenerativeAIExamples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 1000 Bytes
/
Copy pathDockerfile
File metadata and controls
23 lines (21 loc) · 1000 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.12-slim
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
&& apt-get install --no-install-recommends -y \
curl \
rsync \
openssh-client \
wget \
jq \
git \
python3-pip \
lsb-release \
gpg
RUN wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/hashicorp.list
RUN apt-get update && DEBIAN_FRONTEND=noninteractive \
&& apt-get install --no-install-recommends -y vault=1.10.11-1 \
&& apt-get autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN --mount=type=bind,source=docs,target=/docs pip install -r docs/requirements.txt
RUN --mount=type=bind,source=docs,target=/docs pip install -U --no-deps --no-cache-dir -r docs/swagger-requirements.txt