Skip to content

Commit f2e77ac

Browse files
authored
chore(docker): upgrade to Python 3.12-slim base image (#1522)
Switch base image from python:3.10 to python:3.12-slim for improved performance and smaller image size. Use --no-install-recommends for apt package installation and clean up apt cache to reduce final image size.
1 parent 65d3f2a commit f2e77ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717

18-
FROM python:3.10
18+
FROM python:3.12-slim
1919

20-
# Install git and gcc/g++ for annoy
21-
RUN apt-get update && apt-get install -y git gcc g++
20+
RUN apt-get update && apt-get install -y --no-install-recommends git gcc g++ \
21+
&& rm -rf /var/lib/apt/lists/*
2222

2323
# Set POETRY_VERSION environment variable
2424
ENV POETRY_VERSION=1.8.2

0 commit comments

Comments
 (0)