Dockerfile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. FROM ubuntu:22.04
  2. # install basic packages
  3. RUN apt-get update && apt-get install -y \
  4. curl \
  5. wget \
  6. git \
  7. vim \
  8. nano \
  9. unzip \
  10. zip \
  11. python3 \
  12. python3-pip \
  13. python3-venv \
  14. python3-dev \
  15. build-essential \
  16. openssh-server \
  17. sudo \
  18. bash \
  19. gcc \
  20. jq \
  21. g++ \
  22. make \
  23. iproute2 \
  24. libgl1-mesa-glx \
  25. && rm -rf /var/lib/apt/lists/*
  26. RUN mkdir -p -m0755 /var/run/sshd
  27. # symlink python3 to python
  28. RUN ln -s /usr/bin/python3 /usr/bin/python
  29. # ==== OpenDevin Runtime Client ====
  30. RUN mkdir -p /opendevin && mkdir -p /opendevin/logs && chmod 777 /opendevin/logs
  31. RUN wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
  32. RUN bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opendevin/miniforge3
  33. RUN chmod -R g+w /opendevin/miniforge3
  34. RUN bash -c ". /opendevin/miniforge3/etc/profile.d/conda.sh && conda config --set changeps1 False && conda config --append channels conda-forge"
  35. RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> ~/.bashrc
  36. RUN echo "export PATH=/opendevin/miniforge3/bin:$PATH" >> /opendevin/bash.bashrc
  37. # - agentskills dependencies
  38. RUN /opendevin/miniforge3/bin/pip install --upgrade pip
  39. RUN /opendevin/miniforge3/bin/pip install jupyterlab notebook jupyter_kernel_gateway flake8
  40. RUN /opendevin/miniforge3/bin/pip install python-docx PyPDF2 python-pptx pylatexenc openai opencv-python