forked from commune-ai/commune
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·34 lines (27 loc) · 953 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
# COPY ./poetry.lock /app/poetry.lock
# COPY ./ /app
# RUN poetry install
# INSTALL THE COMMUNE REPO FROM SOURCE SO IT WORKS OUT OF THE BOX WHEN YOU ENTER
COPY ./ /app
RUN pip install -e ./
ENTRYPOINT [ "tail", "-f", "/dev/null"]