Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b77e507

Browse filesBrowse files
Smartappliabetlen
andauthored
feat(ci): Dockerfile update base images and post-install cleanup (abetlen#1530)
* Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update build-docker.yaml * Update Dockerfile * Update Dockerfile * Remove docker login --------- Co-authored-by: Andrei Betlen <abetlen@gmail.com>
1 parent e31f096 commit b77e507
Copy full SHA for b77e507

File tree

Expand file treeCollapse file tree

4 files changed

+14
-7
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+14
-7
lines changed

‎docker/cuda_simple/Dockerfile

Copy file name to clipboardExpand all lines: docker/cuda_simple/Dockerfile
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG CUDA_IMAGE="12.1.1-devel-ubuntu22.04"
1+
ARG CUDA_IMAGE="12.5.0-devel-ubuntu22.04"
22
FROM nvidia/cuda:${CUDA_IMAGE}
33

44
# We need to set the host to 0.0.0.0 to allow outside access

‎docker/open_llama/Dockerfile

Copy file name to clipboardExpand all lines: docker/open_llama/Dockerfile
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define the image argument and provide a default value
2-
ARG IMAGE=python:3-slim-bullseye
2+
ARG IMAGE=python:3-slim-bookworm
33

44
# Use the image as specified
55
FROM ${IMAGE}
@@ -12,7 +12,9 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
1212
python3 \
1313
python3-pip \
1414
ninja-build \
15-
build-essential
15+
build-essential \
16+
&& apt-get clean \
17+
&& rm -rf /var/lib/apt/lists/*
1618

1719
RUN python3 -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
1820

‎docker/openblas_simple/Dockerfile

Copy file name to clipboardExpand all lines: docker/openblas_simple/Dockerfile
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
FROM python:3-slim-bullseye
1+
FROM python:3-slim-bookworm
22

33
# We need to set the host to 0.0.0.0 to allow outside access
44
ENV HOST 0.0.0.0
55

66
COPY . .
77

88
# Install the package
9-
RUN apt update && apt install -y libopenblas-dev ninja-build build-essential pkg-config
9+
RUN apt update && apt install -y libopenblas-dev ninja-build build-essential pkg-config \
10+
&& apt-get clean \
11+
&& rm -rf /var/lib/apt/lists/* /tmp/*
12+
1013
RUN python -m pip install --upgrade pip pytest cmake scikit-build setuptools fastapi uvicorn sse-starlette pydantic-settings starlette-context
1114

1215
RUN CMAKE_ARGS="-DLLAMA_BLAS=ON -DLLAMA_BLAS_VENDOR=OpenBLAS" pip install llama_cpp_python --verbose

‎docker/simple/Dockerfile

Copy file name to clipboardExpand all lines: docker/simple/Dockerfile
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Define the image argument and provide a default value
2-
ARG IMAGE=python:3-slim-bullseye
2+
ARG IMAGE=python:3-slim-bookworm
33

44
# Use the image as specified
55
FROM ${IMAGE}
@@ -13,7 +13,9 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
1313
python3-pip \
1414
ninja-build \
1515
libopenblas-dev \
16-
build-essential
16+
build-essential \
17+
&& apt-get clean \
18+
&& rm -rf /var/lib/apt/lists/* /tmp/*
1719

1820
RUN mkdir /app
1921
WORKDIR /app

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.