mirror of https://github.com/microsoft/autogen.git
git-lhs added to devcontainers (#1979)
This commit is contained in:
parent
f42021fb9b
commit
d728cd9110
|
@ -9,9 +9,13 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:3.10
|
|||
# Update the OS and maybe install packages
|
||||
#
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# add git lhs to apt
|
||||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get -y install --no-install-recommends build-essential npm \
|
||||
&& apt-get -y install --no-install-recommends build-essential npm git-lfs \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean -y \
|
||||
&& arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
|
||||
|
@ -22,6 +26,7 @@ ENV DEBIAN_FRONTEND=dialog
|
|||
|
||||
# For docs
|
||||
RUN npm install --global yarn
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install pydoc-markdown
|
||||
RUN pip install pyyaml
|
||||
RUN pip install colored
|
||||
|
|
|
@ -1,10 +1,13 @@
|
|||
# Basic setup
|
||||
FROM python:3.11-slim-bookworm
|
||||
|
||||
# add git lhs to apt
|
||||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||
|
||||
# Update and install necessary packages
|
||||
RUN apt-get update && apt-get -y update
|
||||
# added vim and nano for convenience
|
||||
RUN apt-get install -y sudo git npm vim nano curl wget
|
||||
RUN apt-get install -y sudo git npm vim nano curl wget git-lhs
|
||||
|
||||
# Setup a non-root user 'autogen' with sudo access
|
||||
RUN adduser --disabled-password --gecos '' autogen
|
||||
|
@ -44,6 +47,7 @@ ENV PATH="${PATH}:/home/autogen/quarto/quarto-1.5.23/bin/"
|
|||
EXPOSE 3000
|
||||
|
||||
# Pre-load popular Python packages
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install numpy pandas matplotlib seaborn scikit-learn requests urllib3 nltk pillow pytest beautifulsoup4
|
||||
|
||||
# Set the default command to bash
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
FROM python:3.11-slim-bookworm
|
||||
|
||||
# add git lhs to apt
|
||||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||
|
||||
# Update and install dependencies
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
software-properties-common sudo\
|
||||
software-properties-common sudo git-lhs \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
|
|
@ -9,9 +9,13 @@ FROM mcr.microsoft.com/vscode/devcontainers/python:3.10
|
|||
# Update the OS and maybe install packages
|
||||
#
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# add git lhs to apt
|
||||
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get -y install --no-install-recommends build-essential npm \
|
||||
&& apt-get -y install --no-install-recommends build-essential npm git-lfs \
|
||||
&& apt-get autoremove -y \
|
||||
&& apt-get clean -y \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
@ -19,4 +23,5 @@ ENV DEBIAN_FRONTEND=dialog
|
|||
|
||||
# For docs
|
||||
RUN npm install --global yarn
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install pydoc-markdown
|
||||
|
|
Loading…
Reference in New Issue