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.

Improve Dockerfile: - Use smaller base image - Make it smaller by not saving cache (1,15GB -> 356MB)

Kiss Péter739b0ed96bb5
diff --git a/Dockerfile b/Dockerfile
index 146a374717..4d264c88c8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,7 @@
-FROM python:3.11
-
+FROM python:3.11-slim
+ENV PIP_NO_CACHE_DIR=yes
WORKDIR /app
-COPY scripts/ /app
-COPY requirements.txt /app
-
+COPY requirements.txt .
RUN pip install -r requirements.txt
-
-CMD ["python", "main.py"]
+COPY scripts/ .
+ENTRYPOINT ["python", "main.py"]