Skip to content

Commit 8b4e6fc

Browse files
authored
Merge pull request #148 from codelion/codelion-patch-1
Update Dockerfile
2 parents 0073975 + d36f682 commit 8b4e6fc

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

Dockerfile

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ ENV OPTILLM_PORT=$PORT
1010
WORKDIR /app
1111

1212
# Install system dependencies
13-
RUN apt-get update && apt-get install -y --no-install-recommends \
14-
build-essential \
15-
python3-dev \
16-
gcc \
17-
g++ \
18-
&& rm -rf /var/lib/apt/lists/*
13+
RUN --mount=type=cache,target=/var/cache/apt \
14+
--mount=type=cache,target=/var/lib/apt \
15+
apt-get update && apt-get install -y --no-install-recommends \
16+
build-essential \
17+
python3-dev \
18+
gcc \
19+
g++ \
20+
&& rm -rf /var/lib/apt/lists/*
1921

2022
# Copy only the requirements file first to leverage Docker cache
2123
COPY requirements.txt .
@@ -27,14 +29,16 @@ RUN pip install --no-cache-dir -r requirements.txt
2729
FROM python:3.12-slim
2830

2931
# Add labels for the final image
30-
LABEL org.opencontainers.image.source=https://github.com/codelion/optillm
32+
LABEL org.opencontainers.image.source="https://github.com/codelion/optillm"
3133
LABEL org.opencontainers.image.description="OptiLLM full image with model serving and API routing capabilities"
32-
LABEL org.opencontainers.image.licenses=Apache-2.0
34+
LABEL org.opencontainers.image.licenses="Apache-2.0"
3335

3436
# Install curl for the healthcheck
35-
RUN apt-get update && apt-get install -y --no-install-recommends \
36-
curl && \
37-
apt-get clean && rm -rf /var/lib/apt/lists/*
37+
RUN --mount=type=cache,target=/var/cache/apt \
38+
--mount=type=cache,target=/var/lib/apt \
39+
apt-get update && apt-get install -y --no-install-recommends \
40+
curl \
41+
&& rm -rf /var/lib/apt/lists/*
3842

3943
# Set working directory
4044
WORKDIR /app

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="optillm",
5-
version="0.0.33",
5+
version="0.0.34",
66
packages=find_packages(),
77
py_modules=['optillm'],
88
package_data={

0 commit comments

Comments
 (0)