-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
latentvector
committed
Aug 24, 2024
1 parent
f636713
commit c4480b2
Showing
28 changed files
with
398 additions
and
414 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 |
---|---|---|
@@ -1,36 +1,25 @@ | ||
# THE GENERAL CONTAINER FOR CONNECTING ALL THE ENVIRONMENTS 😈 | ||
FROM ubuntu:22.04 | ||
|
||
#SYSTEM | ||
ENV LIBNAME=commune | ||
WORKDIR /app | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN usermod -s /bin/bash root | ||
RUN apt-get update | ||
|
||
#RUST | ||
RUN apt-get install curl nano build-essential cargo libstd-rust-dev -y | ||
|
||
#JS | ||
RUN apt-get install -y nodejs npm | ||
RUN npm install -g pm2 | ||
ENV LIBNAME commune | ||
ENV PWD /app | ||
WORKDIR /app | ||
RUN git clone https://github.com/commune-ai/commune.git /commune | ||
RUN pip install -e /commune | ||
|
||
#PYTHON | ||
RUN apt-get install python3 python3-pip python3-venv -y | ||
RUN git clone -b main https://github.com/commune-ai/commune.git /commune | ||
RUN pip install -e /commune | ||
|
||
WORKDIR /app | ||
# TODO DOCKER | ||
|
||
# WANT TO HAVE TO REBUILD THE WHOLE IMAGE EVERY TIME WE CHANGE THE REQUIREMENTS | ||
COPY ./requirements.txt /app/requirements.txt | ||
COPY ./setup.py /app/setup.py | ||
COPY ./README.md /app/README.md | ||
|
||
RUN pip install -e ./ | ||
# THIS IS FOR THE LOCAL PACKAG | ||
COPY ./ /app | ||
# git safety for app | ||
RUN git config --global --add safe.directory /app | ||
RUN git config pull.rebase false | ||
# IMPORT EVERYTHING ELSE | ||
ENTRYPOINT [ "tail", "-f", "/dev/null"] |
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
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
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
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
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
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.