forked from agiresearch/AIOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'docker-deployment' into local-llm-fc
- Loading branch information
Showing
2 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Use the Ubuntu 22.04 base image | ||
FROM ubuntu:22.04 | ||
|
||
# Update the package list and install dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
git \ | ||
wget \ | ||
curl \ | ||
vim \ | ||
tmux \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Miniconda | ||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /tmp/miniconda.sh \ | ||
&& bash /tmp/miniconda.sh -b -p /opt/conda \ | ||
&& rm /tmp/miniconda.sh \ | ||
&& /opt/conda/bin/conda init | ||
|
||
# Set path to conda | ||
ENV PATH=/opt/conda/bin:$PATH | ||
|
||
RUN curl https://ollama.ai/install.sh | sh | ||
|
||
# Create a working directory | ||
WORKDIR /workspace | ||
|
||
RUN conda create -n aios python=3.11 -y \ | ||
&& /bin/bash -c "source /opt/conda/bin/activate aios" \ | ||
&& git clone https://github.com/dongyuanjushi/AIOS.git \ | ||
&& cd AIOS | ||
|
||
# Set the default command to run when starting the container | ||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters