-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added changes to docker and testnet additions
- Loading branch information
latentvector
committed
Jun 14, 2024
1 parent
95474bd
commit e7d85c2
Showing
31 changed files
with
283 additions
and
168 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
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,32 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
# Set environment variables | ||
|
||
ENV PYTHONUNBUFFERED True | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN usermod -s /bin/bash root | ||
RUN apt-get update | ||
|
||
# INSTALL RUST ENV | ||
RUN apt-get install curl nano build-essential cargo libstd-rust-dev -y | ||
|
||
# INSTALL NODEJS ENV | ||
RUN apt-get install -y nodejs npm | ||
# install pm2 for process management (currently required for commune) | ||
RUN npm install -g pm2 | ||
|
||
# INSTALL PYTHON ENV | ||
RUN apt-get install python3-pip python3 python3-dev python-is-python3 -y | ||
RUN python -m pip install --upgrade pip | ||
|
||
# --- INSTALL POETRY --- | ||
RUN pip install poetry | ||
COPY ./pyproject.toml /app/pyproject.toml | ||
# you may need the lock or you can disable it | ||
COPY ./poetry.lock /app/poetry.lock | ||
COPY ./ /app | ||
RUN poetry install | ||
|
||
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
Oops, something went wrong.