feat: refact syncrepo using go

This commit is contained in:
engigu
2026-02-27 11:35:55 +08:00
parent 54409696c4
commit 578e020f0d
10 changed files with 370 additions and 342 deletions
+2 -4
View File
@@ -135,14 +135,12 @@ COPY --from=backend-builder /app/baihu .
COPY --from=backend-builder /app/configs ./configs
COPY docker/docker-entrypoint.sh .
# Copy sync.py to /opt
COPY custom/sync.py /opt/sync.py
# Copy agent binaries to /opt/agent
COPY --from=agent-builder /opt/agent /opt/agent
RUN chmod +x /opt/sync.py \
&& chmod +x docker-entrypoint.sh \
RUN chmod +x docker-entrypoint.sh \
&& echo "set encoding=utf-8" >> /etc/vim/vimrc
EXPOSE 8052
+1 -1
View File
@@ -52,4 +52,4 @@ echo "[entrypoint][Nodejs] npm: $(npm --version) at $(which npm)"
# 启动应用
# ============================
cd /app
exec ./baihu
exec ./baihu server