Files
autogen/.devcontainer/full/Dockerfile
gagb 598a634665 Cleanup and unify Dockerfiles (#1333)
* Create studio subfolder in devcontainer

* Update to follow readme instructions

* Move dockerfiles from samples to .devcontainer

* Fix typo in file name

* Update readme

* update doc

* Remove base dockerfile and update readme

---------

Co-authored-by: Qingyun Wu <qingyun.wu@psu.edu>
Co-authored-by: Davor Runje <davor@airt.ai>
2024-01-23 20:25:36 +00:00

30 lines
882 B
Docker

FROM python:3.11-slim-bookworm
# Update and install dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common sudo\
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Setup a non-root user 'autogen' with sudo access
RUN adduser --disabled-password --gecos '' autogen
RUN adduser autogen sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER autogen
WORKDIR /home/autogen
# Set environment variable if needed
# ENV OPENAI_API_KEY="{OpenAI-API-Key}"
# Install Python packages
RUN pip install --upgrade pip
RUN pip install pyautogen[teachable,lmm,retrievechat,mathchat,blendsearch] autogenra
RUN pip install numpy pandas matplotlib seaborn scikit-learn requests urllib3 nltk pillow pytest beautifulsoup4
# Expose port
EXPOSE 8081
# Start Command
CMD ["/bin/bash"]