mirror of
https://github.com/microsoft/autogen.git
synced 2026-01-28 04:58:04 -05:00
* Updates to the Dockerfiles making them more secure. update to the installation.md file and a start.sh file for the Dockerfile.dev to start the document server. Not ready for pull request. * updates to the docker documentation * clean up before commit * added docker instructions on how to test documentation prior to commit. * fixed the title heading in the installation.md * removed alternate yarn install from Dockerfile.dev * Update sidebars.js removed un-related change from website/sidebars.js * cleaned up the lint errors from the pre-commit-check. * removed bad edit from sidebars.js * fixing git conflict with sidebars.js file * Update Installation.md added the missing sections back. However, do we still want the docker section under the Optional Dependencies? That looks like it would go better in the Dockerfiles.md file. * Update Installation.md Added mount your code back and added mount your directory for better clarity. * Update Installation.md Lint cleanup * Update Installation.md removed the relative path to samples/dockers/Dockerfiles.md with a proper URL to where it will exist * fixed bad link to Dockerfiles.md * Fix trailing whitespace and formatting issues * Update link to Dockerfiles.md * somtimes its really hard to find that lost i. * trailing whitespace and EOF issues resolved * fixed broken link * trailing space an broken link * removed broken links. will update one merged. * fixed glaring error about building an image from a particular branch Contribute.md * removed tic mark typo from contribute.md --------- Co-authored-by: Todd W Bucy <todd.bucy@rackspace>
27 lines
815 B
Docker
27 lines
815 B
Docker
FROM python:3.11-slim-bookworm
|
|
|
|
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}"
|
|
|
|
# Pre-load popular packages as per https://learnpython.com/blog/most-popular-python-packages/
|
|
RUN pip install pyautogen numpy pandas matplotlib seaborn scikit-learn requests urllib3 nltk pillow pytest beautifulsoup4
|
|
|
|
# Expose port
|
|
# EXPOSE 8081
|
|
|
|
# Start Command
|
|
CMD [ "/bin/bash" ]
|