Skip to content

Commit 41c70c4

Browse files
authored
Update Dockerfile
1 parent 009057c commit 41c70c4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

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

1212
# Install system dependencies
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 \
13+
RUN apt-get update && \
14+
apt-get install -y --no-install-recommends \
1615
build-essential \
1716
python3-dev \
1817
gcc \
1918
g++ \
19+
&& apt-get clean \
2020
&& rm -rf /var/lib/apt/lists/*
2121

2222
# Copy only the requirements file first to leverage Docker cache
@@ -34,10 +34,10 @@ LABEL org.opencontainers.image.description="OptiLLM full image with model servin
3434
LABEL org.opencontainers.image.licenses="Apache-2.0"
3535

3636
# Install curl for the healthcheck
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 \
37+
RUN apt-get update && \
38+
apt-get install -y --no-install-recommends \
4039
curl \
40+
&& apt-get clean \
4141
&& rm -rf /var/lib/apt/lists/*
4242

4343
# Set working directory

0 commit comments

Comments
 (0)