Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Clean up apt cache in docker build (#2821)

Jan463dc5473393
diff --git a/Dockerfile b/Dockerfile
index 3bcfddeadf..68be43d5d5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,11 +6,13 @@ FROM python:3.10-slim AS autogpt-base
# Install browsers
RUN apt-get update && apt-get install -y \
- chromium-driver firefox-esr \
- ca-certificates
+ chromium-driver firefox-esr ca-certificates \
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
# Install utilities
-RUN apt-get install -y curl jq wget git
+RUN apt-get update && apt-get install -y \
+ curl jq wget git \
+ && apt-get clean && rm -rf /var/lib/apt/lists/*
# Set environment variables
ENV PIP_NO_CACHE_DIR=yes \