forked from mrheed/cortensor-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 859 Bytes
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
35
FROM ipfs/kubo:v0.33.2 AS ipfs
FROM ubuntu:24.04
# Install necessary packages
RUN apt-get update && apt-get install -y \
git \
curl \
apt-transport-https \
ca-certificates
COPY --from=ipfs /usr/local/bin/ipfs /usr/local/bin/ipfs
# Clone the Cortensor installer repository
RUN git clone https://github.com/cortensor/installer.git -b dev /opt/cortensor-installer
WORKDIR /opt/cortensor-installer
RUN mkdir /home/deploy && cp -r dist /home/deploy/.cortensor
WORKDIR /home/deploy/.cortensor
COPY run.sh /home/deploy/.cortensor/run.sh
RUN chmod +x cortensord \
&& mkdir logs \
&& mkdir llm-files \
&& cp .env-example .env \
&& cp cortensor.service /etc/systemd/system \
&& touch logs/cortensord.log \
&& touch logs/cortensord-llm.log \
&& chmod +x run.sh
USER root
CMD ["/bin/bash", "-c", "/home/deploy/.cortensor/run.sh"]