hermesinho commited on
Commit
f6ecd07
·
verified ·
1 Parent(s): 52e9b72

v2: Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -0
Dockerfile ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nousresearch/hermes-agent:latest
2
+
3
+ USER root
4
+
5
+ ENV HOME=/root
6
+ ENV XDG_CONFIG_HOME=/data/.config
7
+ ENV XDG_DATA_HOME=/data/.local/share
8
+ ENV XDG_STATE_HOME=/data/.local/state
9
+
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ curl procps jq git && \
12
+ rm -rf /var/lib/apt/lists/*
13
+
14
+ RUN curl -fsSL https://code-server.dev/install.sh | sh
15
+
16
+ RUN npm install -g opencode-ai@latest
17
+
18
+ RUN mkdir -p /data/.config /data/.local/share /data/.local/state \
19
+ /data/.config/code-server /data/projects
20
+
21
+ COPY config/ /app/config/
22
+ COPY src/ /app/src/
23
+ COPY entrypoint.sh /app/entrypoint.sh
24
+ RUN chmod +x /app/entrypoint.sh
25
+
26
+ WORKDIR /data
27
+
28
+ EXPOSE 7860
29
+
30
+ ENTRYPOINT ["/bin/sh"]
31
+ CMD ["/app/entrypoint.sh"]