Skip to content

Commit

Permalink
Merge pull request #149 from codelion/codelion-patch-2
Browse files Browse the repository at this point in the history
Update Dockerfile.proxy_only
  • Loading branch information
codelion authored Jan 21, 2025
2 parents ebcd6e6 + 547680b commit 0073975
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Dockerfile.proxy_only
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ ENV OPTILLM_PORT=$PORT
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3-dev \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt \
apt-get update && apt-get install -y --no-install-recommends \
build-essential \
python3-dev \
gcc \
g++ \
&& rm -rf /var/lib/apt/lists/*

# Copy only the requirements file first to leverage Docker cache
COPY requirements_proxy_only.txt .
Expand All @@ -31,9 +33,11 @@ LABEL org.opencontainers.image.description="OptiLLM proxy-only image for API rou
LABEL org.opencontainers.image.licenses=Apache-2.0

# Install curl for the healthcheck
RUN apt-get update && apt-get install -y --no-install-recommends \
curl && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=/var/cache/apt \
--mount=type=cache,target=/var/lib/apt \
apt-get update && apt-get install -y --no-install-recommends \
curl && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app
Expand Down

0 comments on commit 0073975

Please sign in to comment.