From cb1b87b68228d83c042e89f076e0419defe6c287 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sat, 27 Jul 2024 22:51:05 +0800 Subject: [PATCH] Clean up temporary apt files in Dockerfile Just like the `--no-cache` for `pip install`, make the image a bit smaller. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9f87b7b9..702cb933 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM python:3-slim WORKDIR /app COPY . /app -RUN apt-get update && apt-get install -y gcc +RUN apt-get update && apt-get install -y gcc && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache /app && mkdir -p /tmp/shell_gpt VOLUME /tmp/shell_gpt