CoolFace
Apppublic

MojoSamurai/AutoGPT

sourceHugging Facemitupdated 3y agoView on Hugging Face
0likes
Dockerfile39 linesDownload Raw Back to root
1# Use an official Python base image from the Docker Hub2FROM python:3.10-slim3 4# Install git5RUN apt-get -y update6RUN apt-get -y install git chromium-driver7 8# Install Xvfb and other dependencies for headless browser testing9RUN apt-get update \10    && apt-get install -y wget gnupg2 libgtk-3-0 libdbus-glib-1-2 dbus-x11 xvfb ca-certificates11 12# Install Firefox / Chromium13RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \14    && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \15    && apt-get update \16    && apt-get install -y chromium firefox-esr17 18# Set environment variables19ENV PIP_NO_CACHE_DIR=yes \20    PYTHONUNBUFFERED=1 \21    PYTHONDONTWRITEBYTECODE=122 23# Create a non-root user and set permissions24RUN useradd --create-home appuser25WORKDIR /home/appuser26RUN chown appuser:appuser /home/appuser27USER appuser28 29# Copy the requirements.txt file and install the requirements30COPY --chown=appuser:appuser requirements.txt .31RUN sed -i '/Items below this point will not be included in the Docker Image/,$d' requirements.txt && \32	pip install --no-cache-dir --user -r requirements.txt33 34# Copy the application files35COPY --chown=appuser:appuser autogpt/ ./autogpt36 37# Set the entrypoint38ENTRYPOINT ["python", "-m", "autogpt"]39