Subsequently commited on
Commit
a8cd9d1
·
verified ·
1 Parent(s): 9026607

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nousresearch/hermes-agent:latest
2
+
3
+ USER root
4
+
5
+ RUN apt-get update -qq && \
6
+ apt-get install -y --no-install-recommends nginx git curl procps netcat-openbsd && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ RUN git clone --depth 1 https://github.com/nesquena/hermes-webui.git /opt/hermes-webui
10
+
11
+ RUN cd /opt/hermes-webui && \
12
+ pip install --no-cache-dir -r requirements.txt --break-system-packages
13
+
14
+ COPY nginx.conf /etc/nginx/conf.d/hermes.conf
15
+ COPY entrypoint.sh /app/entrypoint.sh
16
+ COPY setup-hermes.sh /app/setup-hermes.sh
17
+
18
+ RUN rm -f /etc/nginx/sites-enabled/default && \
19
+ chmod +x /app/entrypoint.sh /app/setup-hermes.sh && \
20
+ mkdir -p /data && chmod 777 /data && \
21
+ mkdir -p /run/nginx
22
+
23
+ ENV HERMES_HOME=/data
24
+ ENV HERMES_WEBUI_HOST=0.0.0.0
25
+ ENV HERMES_WEBUI_PORT=8787
26
+ ENV HERMES_WEBUI_STATE_DIR=/data/webui
27
+ ENV HERMES_WEBUI_AGENT_DIR=/opt/hermes
28
+ ENV PYTHONUNBUFFERED=1
29
+
30
+ EXPOSE 7860
31
+
32
+ ENTRYPOINT ["/app/entrypoint.sh"]