diff options
author | Reinier van der Leer <pwuts@agpt.co> | 2024-01-29 18:29:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 18:29:24 +0100 |
commit | 575be818ca1f7c644e2adf94c584772547141f55 (patch) | |
tree | abb052ae787b1107c9dff8fb4d86ee84842d515d /Dockerfile | |
parent | Update ossf-scorecard.yml (diff) | |
parent | fix(agent/json_utils): Make `extract_dict_from_response` more robust (diff) | |
download | Auto-GPT-security/analysis-workflows-sandbox.tar.gz Auto-GPT-security/analysis-workflows-sandbox.tar.bz2 Auto-GPT-security/analysis-workflows-sandbox.zip |
Merge branch 'master' into security/analysis-workflows-sandboxsecurity/analysis-workflows-sandbox
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index a31c78abf..000000000 --- a/Dockerfile +++ /dev/null @@ -1,46 +0,0 @@ -# 'dev' or 'release' container build -ARG BUILD_TYPE=dev - -# Use an official Python base image from the Docker Hub -FROM python:3.10-slim AS autogpt-base - -# Install browsers -RUN apt-get update && apt-get install -y \ - chromium-driver firefox-esr ca-certificates \ - && apt-get clean && rm -rf /var/lib/apt/lists/* - -# Install utilities -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 \ - PYTHONUNBUFFERED=1 \ - PYTHONDONTWRITEBYTECODE=1 - -# Install the required python packages globally -ENV PATH="$PATH:/root/.local/bin" -COPY requirements.txt . - -# Set the entrypoint -ENTRYPOINT ["python", "-m", "autogpt", "--install-plugin-deps"] - -# dev build -> include everything -FROM autogpt-base as autogpt-dev -RUN pip install --no-cache-dir -r requirements.txt -WORKDIR /app -ONBUILD COPY . ./ - -# release build -> include bare minimum -FROM autogpt-base as autogpt-release -RUN sed -i '/Items below this point will not be included in the Docker Image/,$d' requirements.txt && \ - pip install --no-cache-dir -r requirements.txt -WORKDIR /app -ONBUILD COPY autogpt/ ./autogpt -ONBUILD COPY scripts/ ./scripts -ONBUILD COPY plugins/ ./plugins -ONBUILD COPY prompt_settings.yaml ./prompt_settings.yaml -ONBUILD RUN mkdir ./data - -FROM autogpt-${BUILD_TYPE} AS auto-gpt |