| |
| FROM python:3.10-slim |
|
|
| |
| RUN apt-get -y update |
| RUN apt-get -y install git chromium-driver |
|
|
| |
| RUN apt-get update \ |
| && apt-get install -y wget gnupg2 libgtk-3-0 libdbus-glib-1-2 dbus-x11 xvfb ca-certificates |
|
|
| |
| RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
| && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ |
| && apt-get update \ |
| && apt-get install -y chromium firefox-esr |
|
|
| |
| ENV PIP_NO_CACHE_DIR=yes \ |
| PYTHONUNBUFFERED=1 \ |
| PYTHONDONTWRITEBYTECODE=1 |
|
|
| |
| RUN useradd --create-home appuser |
| WORKDIR /home/appuser |
| RUN chown appuser:appuser /home/appuser |
| USER appuser |
|
|
| |
| COPY --chown=appuser:appuser requirements.txt . |
| RUN sed -i '/Items below this point will not be included in the Docker Image/,$d' requirements.txt && \ |
| pip install --no-cache-dir --user -r requirements.txt |
|
|
| |
| COPY --chown=appuser:appuser autogpt/ ./autogpt |
|
|
| |
| ENTRYPOINT ["python", "-m", "autogpt"] |
|
|