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.
build: Reduce AutoGPT Docker image size
Reinier van der Leerf3faa4781447
diff --git a/autogpts/autogpt/Dockerfile b/autogpts/autogpt/Dockerfileindex 941620e8be..b7af437a83 100644--- a/autogpts/autogpt/Dockerfile+++ b/autogpts/autogpt/Dockerfile@@ -6,7 +6,7 @@ FROM python:3.10-slim AS autogpt-base# Install browsersRUN apt-get update && apt-get install -y \- chromium-driver firefox-esr ca-certificates gcc \+ chromium-driver ca-certificates gcc \&& apt-get clean && rm -rf /var/lib/apt/lists/*# Install utilities@@ -37,12 +37,14 @@ CMD []# dev build -> include everythingFROM autogpt-base as autogpt-dev-RUN poetry install --no-root+RUN poetry install --no-cache --no-root \+ && rm -rf $(poetry env info --path)/srcONBUILD COPY . ./# release build -> include bare minimumFROM autogpt-base as autogpt-release-RUN poetry install --no-root --without dev+RUN poetry install --no-cache --no-root --without dev \+ && rm -rf $(poetry env info --path)/srcONBUILD COPY autogpt/ ./autogptONBUILD COPY scripts/ ./scriptsONBUILD COPY plugins/ ./plugins