@@ -10,12 +10,14 @@ ENV OPTILLM_PORT=$PORT
1010WORKDIR /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
2123COPY requirements.txt .
@@ -27,14 +29,16 @@ RUN pip install --no-cache-dir -r requirements.txt
2729FROM 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"
3133LABEL 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
4044WORKDIR /app
0 commit comments