Persist gateway secrets and worktree state in user data

This commit is contained in:
HumbleTurtle
2026-09-21 13:19:27 -03:00
parent 19b047e7f8
commit 76f5b18b8a
5 changed files with 531 additions and 41 deletions
+4 -1
View File
@@ -10,11 +10,13 @@ RUN dnf -y install ca-certificates git openssh-clients python3 tmux util-linux \
&& dnf clean all
COPY resources/scripts/napseer_mcp_server.py /opt/napseer/napseer_mcp_server.py
COPY resources/scripts/napseer_credentials.py /opt/napseer/napseer_credentials.py
COPY resources/scripts/napseer_spake2.py /opt/napseer/napseer_spake2.py
COPY resources/scripts/terminal/ /opt/napseer/terminal/
RUN python3 -m py_compile \
/opt/napseer/napseer_mcp_server.py \
/opt/napseer/napseer_credentials.py \
/opt/napseer/napseer_spake2.py \
/opt/napseer/terminal/__init__.py \
/opt/napseer/terminal/protocol.py \
@@ -27,6 +29,7 @@ ENV NAPSEER_GATEWAY_PORT=0
ENV NAPSEER_GATEWAY_PTY_TERMINAL=1
ENV NAPSEER_SERVICE_ACTIVATION_TIMEOUT_SECONDS=900
VOLUME ["/workspace/.napseer"]
ENV NAPSEER_USER_DATA_DIR=/var/lib/napseer
VOLUME ["/var/lib/napseer"]
CMD ["python3", "/opt/napseer/napseer_mcp_server.py", "gateway", "service", "run"]