mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-02-22 22:54:22 +01:00
Improve Dockerfile:
- Use smaller base image - Make it smaller by not saving cache (1,15GB -> 356MB)
This commit is contained in:
12
Dockerfile
12
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"]
|
||||
|
||||
Reference in New Issue
Block a user